Forum Discussion
Anyone finished the "Etherium Smart Contracts"?
EP5: I set up an own contract with a selfDestruct function. The payout address on destruction was set to the Robin Hood contract address. So on destruction the payout should go to this contract and could not be reversed (at least that was my approach).
Did I make something wrong or is this the wrong approach?
I used the console and truffle for this approach. And yes, I transferred ether to the new deployed contract.
Ep5 > hmm.. I've used truffle, created a contract and so. and then used 0xE60...
const forceSend = await ForceSend.deployed();
await forceSend.destroyAndSend("0xE60...");
- IotS20245 months ago
Bronze III
Yes, maybe I did something wrong the first time. I loved this approach, it really is interesting and very nice. So EP-5 is done. Thank you very much for the help so far. The tip you provided was very very helpful.
Any Tips for EP-3 Decoding? :)
- steven5 months ago
Silver II
Ep3 was not in your initial overview.... so...
no.
ok, wait...
The function name contains a typo. think what you can do about this :)