From 79190445db082fd0c71bd7d363ef4f83b819fda1 Mon Sep 17 00:00:00 2001 From: thiagodeev Date: Mon, 20 May 2024 11:41:02 -0300 Subject: [PATCH] Removed duplicated transaction, remnant goerli data, and comment from code --- account/account_test.go | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/account/account_test.go b/account/account_test.go index daf7a24d..b3dea405 100644 --- a/account/account_test.go +++ b/account/account_test.go @@ -206,25 +206,6 @@ func TestFmtCallData(t *testing.T) { "devnet": {}, "mock": {}, "testnet": { - { - CairoVersion: 0, - ChainID: "SN_SEPOLIA", - FnCall: rpc.FunctionCall{ - ContractAddress: utils.TestHexToFelt(t, "0x05f7cd1fd465baff2ba9d2d1501ad0a2eb5337d9a885be319366b5205a414fdd"), - EntryPointSelector: utils.GetSelectorFromNameFelt("increase_balance"), - Calldata: []*felt.Felt{new(felt.Felt).SetUint64(2), new(felt.Felt).SetUint64(2)}, - }, - ExpectedCallData: utils.TestHexArrToFelt(t, []string{ - "0x1", - "0x05f7cd1fd465baff2ba9d2d1501ad0a2eb5337d9a885be319366b5205a414fdd", - "0x0362398bec32bc0ebb411203221a35a0301193a96f317ebe5e40be9f60d15320", - "0x0", - "0x2", - "0x2", - "0x2", - "0x2", - }), - }, { CairoVersion: 2, ChainID: "SN_SEPOLIA", @@ -668,22 +649,6 @@ func TestTransactionHashDeclare(t *testing.T) { ExpectedHash: utils.TestHexToFelt(t, "0x28e430cc73715bd1052e8db4f17b053c53dd8174341cba4b1a337b9fecfa8c3"), ExpectedErr: nil, }, - { - // https://sepolia.voyager.online/tx/0x28e430cc73715bd1052e8db4f17b053c53dd8174341cba4b1a337b9fecfa8c3 - Txn: rpc.DeclareTxnV2{ - Nonce: utils.TestHexToFelt(t, "0x1"), - Type: rpc.TransactionType_Declare, - Version: rpc.TransactionV2, - Signature: []*felt.Felt{ - utils.TestHexToFelt(t, "0x713765e220325edfaf5e033ad77b1ba4eceabe66333893b89845c2ddc744d34"), - utils.TestHexToFelt(t, "0x4f28b1c15379c0ceb1855c09ed793e7583f875a802cbf310a8c0c971835c5cf")}, - SenderAddress: utils.TestHexToFelt(t, "0x0019bd7ebd72368deb5f160f784e21aa46cd09e06a61dc15212456b5597f47b8"), - CompiledClassHash: utils.TestHexToFelt(t, "0x017f655f7a639a49ea1d8d56172e99cff8b51f4123b733f0378dfd6378a2cd37"), - ClassHash: utils.TestHexToFelt(t, "0x01f372292df22d28f2d4c5798734421afe9596e6a566b8bc9b7b50e26521b855"), - }, - ExpectedHash: utils.TestHexToFelt(t, "0x28e430cc73715bd1052e8db4f17b053c53dd8174341cba4b1a337b9fecfa8c3"), - ExpectedErr: nil, - }, }, "testnet": { { @@ -1178,9 +1143,6 @@ func TestAddDeclareTxn(t *testing.T) { require.NoError(t, err) compClassHash := hash.CompiledClassHash(casmClass) - // nonce, err := acnt.Nonce(context.Background(), rpc.BlockID{Tag: "latest"}, acnt.AccountAddress) - // require.NoError(t, err) - tx := rpc.DeclareTxnV2{ Nonce: utils.TestHexToFelt(t, "0xd"), MaxFee: utils.TestHexToFelt(t, "0xc5cb22092551"),