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

Modified test code for gas #661

Merged
merged 1 commit into from
Jun 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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