The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [selfdestruct]

opcode for deleting a contract, original opcode called SUICIDE

7 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
302 views

Upgrading the truffle Migrations contract

In the standard truffle migrations contract the purpose of the upgrade function is upgrade the Migrations contract itself by copying the last_completed_migration of the old Migrations contract to the ...
2
votes
1answer
33 views

After a suicide operation, is contract’s nonce reset to 0?

Simple question, but I couldn’t find the answer in the yellow paper. Is it reset to 0 or is it kept at the latest value before destruction ?
2
votes
0answers
286 views

how can I detect if an address contained a contract that called selfdestruct?

I would like to create a web3-based JS function like this: function hasSelfDestructed(address) { if (... address was a contract, but has called selfdestruct ...) return true else return ...
1
vote
0answers
45 views

How can I see the transactions which move funds from a destroyed contract?

I got this external account from which I called a function of this contract which subsequently called selfdestruct and sent all the funds to the caller. Where can I see the tx making this transfer? ...
0
votes
0answers
323 views

SelfDestruct: Base fee exceeds gas limit

Using ganache-cli (ganache-core v2.1.0, cli v6.1.0) ganache-cli --blockTime 300 --account="0xC87509A1C067BBDE78BEB793E6FA76530B6382A4C0241E5E4A9EC0A0F44DC0D3,100000000000000000000" -p 9545 -l 6000000 ...
0
votes
0answers
56 views

Question on selfdestruct/suicide operation to a multi-sig address

I am writing a very simple contract that does the following: accepts ETH allows the transfer of ownerships logs events suicides when goal is met I tested it successfully with a regular account and I ...
0
votes
0answers
524 views

“callback contain no result Error: Error: base fee exceeds gas limit” when call selfdestruct function (using Remix IDE)

I'm testing this simple contract. All the functions works well, but when I call the kill() function I'm getting this error: callback contain no result Error: Error: base fee exceeds gas limit I'm ...