Skip to content

Commit

Permalink
Set as 1200 to exceed the block size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
moraygrieve committed Dec 20, 2024
1 parent e9c16bc commit eb28806
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/ten/ten_cor_117/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class PySysTest(TenNetworkTest):
GAS = '0'
LIMIT = 5000
LIMIT = 1200

def execute(self):
# connect to the network (use an ephemeral account)
Expand Down Expand Up @@ -37,7 +37,8 @@ def transact(self, calldata, web3, account, limit, expect_pass=True):

if int(self.GAS) == 0:
self.log.info('Estimating gas ...')
params['gas'] = int(1.1 * target.estimate_gas(params))
params['gas'] = int(target.estimate_gas(params))
self.log.info('Estimating gas %d' % target.estimate_gas(params))
else:
self.log.info('Using set gas limit of %d' % int(self.GAS))
params['gas'] = int(self.GAS)
Expand All @@ -55,6 +56,8 @@ def transact(self, calldata, web3, account, limit, expect_pass=True):
self.assertTrue(calldata.contract.functions.getLastSum().call() == sum(large_array))
else:
self.log.error('Transaction failed')
web3.eth.call(build_tx, block_identifier=tx_receipt.blockNumber)
self.log.warn('Replaying the transaction did not throw an error')
if expect_pass: self.addOutcome(FAILED,outcomeReason='Expected tx to succeed')
except Exception as e:
self.log.error('Error %s' % e)
Expand Down

0 comments on commit eb28806

Please sign in to comment.