UNPKG

0xweb

Version:

Contract package manager and other web3 tools

23 lines (18 loc) 472 B
import { EvmBytecode } from '../EvmBytecode'; import Opcode from '../interfaces/IOpcode'; export class ADDRESS { readonly name: string; readonly type?: string; readonly wrapped: boolean; constructor() { this.name = 'ADDRESS'; this.type = 'address'; this.wrapped = false; } toString() { return 'this'; } } export default (opcode: Opcode, state: EvmBytecode): void => { state.stack.push(new ADDRESS()); };