We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb61dc commit 03b4221Copy full SHA for 03b4221
packages/evm/examples/clz.ts
@@ -45,7 +45,9 @@ const runCase = async (evm: EVM, x: PrefixedHexString) => {
45
46
const [top] = stack.peek(1)
47
const hexValue = `0x${top.toString(16)}`
48
- console.log(`clz=${top} (hex=${hexValue}) for x=${x}`)
+ const gas = res.executionGasUsed
49
+ console.log(`input=${x}`)
50
+ console.log(`output=${hexValue} -- clz=${top} -- gas=${gas}`)
51
}
52
53
const main = async () => {
0 commit comments