hashgraph / hedera-smart-contracts

Contains Hedera Smart Contract Service supporting files
Apache License 2.0
46 stars 54 forks source link

Investigate cancun SELFDESTRUCT anomalies #936

Open david-bakin-sl opened 2 months ago

david-bakin-sl commented 2 months ago

Reported questions about SELFDESTRUCT and BLOBBASEFEE (from test/examples in this repo).

Update: BLOBBASEFEE found to be an bug - issue #237

david-bakin-sl commented 1 month ago

See #16091 for BLOBBASEFEE issue. SELFDESTRUCT issue still being investigated.

david-bakin-sl commented 1 month ago

Issue reported for SELFDESTRUCT is that EIP-6780 clearly states that the target address for the sweep aka the beneficiary aka the obtainer (in our code for contract delete) can be the contract address itself and there are two cases:

(The case of a HAPI ContractDelete call is that it always fails if there's a balance and the beneficiary is the contract account.)