Skip to content

Commit

Permalink
Revert errors.go changes and update RPC links on .yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodeev committed May 28, 2024
1 parent a58841e commit 7dab635
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main_ci_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ jobs:
#run: cd rpc && go test -timeout 1200s -v -env testnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "https://starknet-goerli.cartridge.gg/"
INTEGRATION_BASE: "https://free-rpc.nethermind.io/sepolia-juno"

# Test rpc on mainnet
- name: Test RPC with mainnet
run: echo "Skip for now - need public endpoint that follows rpc spec"
#run: cd rpc && go test -timeout 600s -v -env mainnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "https://starknet.cartridge.gg/"
INTEGRATION_BASE: "https://free-rpc.nethermind.io/mainnet-juno"

# Test Account on devnet
- name: Test Account on devnet
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ jobs:
#run: cd rpc && go test -timeout 1200s -v -env testnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "https://starknet-goerli.cartridge.gg/"
INTEGRATION_BASE: "https://free-rpc.nethermind.io/sepolia-juno"

# Test rpc on mainnet
- name: Test RPC with mainnet
run: echo "Skip for now - need public endpoint that follows rpc spec"
#run: cd rpc && go test -timeout 600s -v -env mainnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "https://starknet.cartridge.gg/"
INTEGRATION_BASE: "https://free-rpc.nethermind.io/mainnet-juno"
6 changes: 0 additions & 6 deletions rpc/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package rpc
import (
"encoding/json"
"errors"
"fmt"
)

var ErrNotImplemented = errors.New("not implemented")
Expand Down Expand Up @@ -64,7 +63,6 @@ func tryUnwrapToRPCErr(err error, rpcErrors ...*RPCError) *RPCError {
return &nodeErr
}
}

return Err(InternalError, err.Error())
}

Expand All @@ -75,10 +73,6 @@ type RPCError struct {
}

func (e RPCError) Error() string {
if _, ok := e.Data.(string); !ok {
return fmt.Sprintf("%s: %v", e.Message, e.Data)
}

return e.Message
}

Expand Down

0 comments on commit 7dab635

Please sign in to comment.