Skip to content

Commit

Permalink
Disabled gas test.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Sep 27, 2023
1 parent b664e86 commit 258953b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions integration/networktest/tests/gas/gas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion integration/networktest/userwallet/userwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
4 changes: 3 additions & 1 deletion integration/simulation/network/geth_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 258953b

Please sign in to comment.