NibiruChain / nibiru

Nibiru Chain: The breakthrough smart contract platform ushering in the next era of money. Nibiru powers an ecosystem of dApps including perps, RWAs, and more.
https://nibiru.fi
Apache License 2.0
179 stars 200 forks source link

spike(evm): Why isn't gas deducted based on gas limit in E2E EVM tests #1902

Open Unique-Divine opened 1 month ago

Unique-Divine commented 1 month ago

Objective

Investigate and document why the gas consumption is unaffected by the argument for gasLimit on Nibiru v2.0.0-evm.2.

// tx for ethers
const transaction = {
    gasLimit: gasLimit,
    to: randomAddress,
    value: amountToSend
}

Ref: https://github.com/NibiruChain/nibiru/pull/1901/files#diff-9d52305345ae733367057c1d55e673f7c70452cd5bc77e8ad122fa921e9d36bf

"TODO: gas is not deducted regardless the gas limit, check this"