evm
Version:
An ethereum virtual machine (EVM) bytecode decompiler
22 lines (17 loc) • 487 B
text/typescript
import EVM from '../classes/evm.class';
import Opcode from '../interfaces/opcode.interface';
export class RETURNDATASIZE {
readonly name: string;
readonly type?: string;
readonly wrapped: boolean;
constructor() {
this.name = 'RETURNDATASIZE';
this.wrapped = false;
}
toString() {
return 'output.length';
}
}
export default (opcode: Opcode, state: EVM): void => {
state.stack.push(new RETURNDATASIZE());
};