Skip to content

Commit

Permalink
Merge branch 'new-contracts' into test-declareTxn
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Oct 5, 2023
2 parents eb45f24 + 3af2895 commit 66f4a9e
Show file tree
Hide file tree
Showing 49 changed files with 1,336 additions and 192,907 deletions.
7 changes: 3 additions & 4 deletions account/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/NethermindEth/starknet.go/mocks"
"github.com/NethermindEth/starknet.go/rpc"
"github.com/NethermindEth/starknet.go/test"
"github.com/NethermindEth/starknet.go/types"
"github.com/NethermindEth/starknet.go/utils"
"github.com/golang/mock/gomock"
"github.com/test-go/testify/require"
Expand Down Expand Up @@ -170,7 +169,7 @@ func TestFmtCallData(t *testing.T) {
{
FnCall: rpc.FunctionCall{
ContractAddress: utils.TestHexToFelt(t, "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
EntryPointSelector: types.GetSelectorFromNameFelt("transfer"),
EntryPointSelector: utils.GetSelectorFromNameFelt("transfer"),
Calldata: utils.TestHexArrToFelt(t, []string{
"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
"0x1"}),
Expand Down Expand Up @@ -347,7 +346,7 @@ func TestAddInvoke(t *testing.T) {
},
FnCall: rpc.FunctionCall{
ContractAddress: utils.TestHexToFelt(t, "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
EntryPointSelector: types.GetSelectorFromNameFelt("transfer"),
EntryPointSelector: utils.GetSelectorFromNameFelt("transfer"),
Calldata: []*felt.Felt{
utils.TestHexToFelt(t, "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
utils.TestHexToFelt(t, "0x1"),
Expand All @@ -371,7 +370,7 @@ func TestAddInvoke(t *testing.T) {
},
FnCall: rpc.FunctionCall{
ContractAddress: utils.TestHexToFelt(t, "0x03E85bFbb8E2A42B7BeaD9E88e9A1B19dbCcf661471061807292120462396ec9"),
EntryPointSelector: types.GetSelectorFromNameFelt("burn"),
EntryPointSelector: utils.GetSelectorFromNameFelt("burn"),
Calldata: []*felt.Felt{
utils.TestHexToFelt(t, "0x043784df59268c02b716e20bf77797bd96c68c2f100b2a634e448c35e3ad363e"),
utils.TestHexToFelt(t, "0x1"),
Expand Down
Loading

0 comments on commit 66f4a9e

Please sign in to comment.