Skip to content

Commit

Permalink
Devnet tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Jul 18, 2023
1 parent 0981668 commit e8f9970
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions rpcv02/call_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,14 @@ func TestCall(t *testing.T) {
"devnet": {
{
FunctionCall: FunctionCall{
ContractAddress: utils.TestHexToFelt(t, "0xbaaa96effb3564b6047e45944e8db9d9b0a056886d131038baabb56a959390"),
EntryPointSelector: types.GetSelectorFromNameFelt("get_count"),
// ContractAddress of predeployed devnet Feetoken
ContractAddress: utils.TestHexToFelt(t, "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
EntryPointSelector: types.GetSelectorFromNameFelt("name"),
Calldata: []*felt.Felt{},
},
BlockID: WithBlockTag("latest"),
ExpectedPatternResult: "^0x[0-9a-f]+$",
},
{
FunctionCall: FunctionCall{
// ContractAddress of devnet ETH
ContractAddress: utils.TestHexToFelt(t, "0x62230ea046a9a5fbc261ac77d03c8d41e5d442db2284587570ab46455fd2488"),
EntryPointSelector: types.GetSelectorFromNameFelt("balanceOf"),
Calldata: []*felt.Felt{utils.TestHexToFelt(t, DevNetAccount032Address)},
},
BlockID: WithBlockTag("latest"),
ExpectedPatternResult: "^0x[0-9a-f]+$",
},
},
"mock": {
{
Expand Down Expand Up @@ -98,7 +89,6 @@ func TestCall(t *testing.T) {
spy := NewSpy(testConfig.provider.c)
testConfig.provider.c = spy
output, err := testConfig.provider.Call(context.Background(), FunctionCall(test.FunctionCall), test.BlockID)

if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit e8f9970

Please sign in to comment.