Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #661 from jimni1222/testcode
Browse files Browse the repository at this point in the history
Modified test code for gas
  • Loading branch information
jimni1222 authored Jun 15, 2022
2 parents c37f31f + 2325cc4 commit 00fd8eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/methodErrorHandling.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ describe('Error handling in Method package', () => {
type: 'SMART_CONTRACT_DEPLOY',
from: sender.address,
data: deployedData,
gas: 140000,
value: 0,
}
const estimated = await caver.rpc.klay.estimateGas(tx)
tx.gas = Math.floor(caver.utils.hexToNumber(estimated) * 0.8)
const expectedError = `contract creation code storage out of gas`
await expect(caver.klay.sendTransaction(tx)).to.be.rejectedWith(expectedError)
}).timeout(200000)
Expand Down

0 comments on commit 00fd8eb

Please sign in to comment.