import { handler_0x6C_PUSH13 } from '@tevm/voltaire/evm/stack/handlers';
import { createFrame } from '@tevm/voltaire/evm/Frame';
// Bytecode with PUSH13
const bytecode = new Uint8Array([
0x6C, // PUSH13
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d // 13 bytes: 0102030405060708090a0b0c0d
]);
const frame = createFrame({
bytecode,
pc: 0,
stack: [],
gasRemaining: 1000n
});
const err = handler_0x6C_PUSH13(frame);
console.log(frame.stack); // [0x0102030405060708090a0b0c0d00000000000000000000000000000000000000n]
console.log(frame.pc); // 14
console.log(frame.gasRemaining); // 997n (3 gas consumed)