UNPKG

0xweb

Version:

Contract package manager and other web3 tools

8 lines (6 loc) 265 B
import { EvmBytecode } from '../EvmBytecode'; import Opcode from '../interfaces/IOpcode'; export default (opcode: Opcode, state: EvmBytecode): void => { const swapLocation = parseInt(opcode.name.replace('SWAP', ''), 10); state.stack.swap(swapLocation); };