From 3439ce6789be33861f221baf64d049a5831533b2 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Tue, 22 Oct 2024 21:21:42 +0200 Subject: [PATCH] core/vm: docs --- core/vm/interface.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/vm/interface.go b/core/vm/interface.go index 195b526d60..9229f4d2cd 100644 --- a/core/vm/interface.go +++ b/core/vm/interface.go @@ -60,6 +60,11 @@ type StateDB interface { SelfDestruct(common.Address) uint256.Int HasSelfDestructed(common.Address) bool + // SelfDestruct6780 is post-EIP6780 selfdestruct, which means that it's a + // send-all-to-beneficiary, unless the contract was created in this same + // transaction, in which case it will be destructed. + // This method returns the prior balance, along with a boolean which is + // true iff the object was indeed destructed. SelfDestruct6780(common.Address) (uint256.Int, bool) // Exist reports whether the given account exists in state.