diff --git a/test/evm/individual-opcodes.test.ts b/test/evm/individual-opcodes.test.ts index 7455100..0c4516d 100644 --- a/test/evm/individual-opcodes.test.ts +++ b/test/evm/individual-opcodes.test.ts @@ -494,6 +494,22 @@ describe('Individual OpCodes', () => { }, ) + it.e2eTest( + 'should give the correct output for opcode: BASEFEE', + 'all', + async () => { + const debugged = await traceContractCall( + opcodesInterface.encodeFunctionData('BASEFEE'), + 'BASEFEE', + true, + ) + + expect( + debugged.structLogs[debugged.structLogs.length - 1].error, + ).toBe('invalid opcode 0x48') + }, + ) + it.e2eTest( 'should give the correct output for opcode: INVALID', 'all', @@ -567,4 +583,26 @@ describe('Individual OpCodes', () => { expect(simulation.body?.[0]?.vmError).toEqual('invalid opcode 0x5f') }, ) + + it.e2eTest( + 'should be possible to deploy contract starting with 0xEF', + 'all', + async () => { + const contractBytecode = '0x60ef60005360016000f3' + const clauses = [ + { + to: null, + value: '0x0', + data: contractBytecode, + }, + ] + + const simulation = await Client.raw.executeAccountBatch({ + clauses, + caller, + }) + + expect(simulation.body?.[0]?.vmError).toBeEmpty() + }, + ) })