From 258953baac0f9a586501b6e352575e054a7a3e97 Mon Sep 17 00:00:00 2001 From: StefanIliev545 Date: Wed, 27 Sep 2023 13:30:43 +0300 Subject: [PATCH] Disabled gas test. --- integration/networktest/tests/gas/gas_test.go | 1 + integration/networktest/userwallet/userwallet.go | 2 +- integration/simulation/network/geth_utils.go | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/integration/networktest/tests/gas/gas_test.go b/integration/networktest/tests/gas/gas_test.go index babd55b01b..ec35d16629 100644 --- a/integration/networktest/tests/gas/gas_test.go +++ b/integration/networktest/tests/gas/gas_test.go @@ -25,6 +25,7 @@ var _transferAmount = big.NewInt(100_000_000) // Used to automatically detect batch desync based on transaction inclusion. // Sequencer and Validator will process different transactions, but state should be identical. func TestExecuteNativeFundsTransferNoGas(t *testing.T) { + networktest.TestOnlyRunsInIDE(t) networktest.Run( "gas-underlimit-test", t, diff --git a/integration/networktest/userwallet/userwallet.go b/integration/networktest/userwallet/userwallet.go index 1ef399cf7c..5faba24d47 100644 --- a/integration/networktest/userwallet/userwallet.go +++ b/integration/networktest/userwallet/userwallet.go @@ -94,7 +94,7 @@ func (s *UserWallet) SendFunds(ctx context.Context, addr gethcommon.Address, val tx := &types.LegacyTx{ Nonce: s.nonce, Value: value, - Gas: uint64(1_000_000), + Gas: gas, GasPrice: gethcommon.Big1, To: &addr, } diff --git a/integration/simulation/network/geth_utils.go b/integration/simulation/network/geth_utils.go index c82f62906b..98bc58c920 100644 --- a/integration/simulation/network/geth_utils.go +++ b/integration/simulation/network/geth_utils.go @@ -64,6 +64,8 @@ func StartGethNetwork(wallets *params.SimWallets, startPort int, blockDurationSe walletAddresses = append(walletAddresses, w.Address().String()) } + fmt.Printf("Prefunded wallet addresses: %d\n", len(walletAddresses)) + // kickoff the network with the prefunded wallet addresses eth2Network := eth2network.NewEth2Network( path, @@ -98,7 +100,7 @@ func DeployObscuroNetworkContracts(client ethadapter.EthClient, wallets *params. } mgmtContractReceipt, err := DeployContract(client, wallets.MCOwnerWallet, bytecode) if err != nil { - return nil, fmt.Errorf("failed to deploy management contract. Cause: %w", err) + return nil, fmt.Errorf("failed to deploy management contract from %s. Cause: %w", wallets.MCOwnerWallet.Address(), err) } managementContract, err := ManagementContract.NewManagementContract(mgmtContractReceipt.ContractAddress, client.EthClient())