From 4b43baf084411bdfda796968ed7804283ad77426 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Fri, 1 Nov 2024 21:44:44 +0100 Subject: [PATCH] improve some comments Signed-off-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com> --- core/verkle_witness_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/verkle_witness_test.go b/core/verkle_witness_test.go index 226f350ce6..adf78396af 100644 --- a/core/verkle_witness_test.go +++ b/core/verkle_witness_test.go @@ -1031,14 +1031,13 @@ func TestProcessVerkleSelfDestructInSameTxWithSelfBeneficiaryAndPrefundedAccount deployer = crypto.PubkeyToAddress(testKey.PublicKey) contract = crypto.CreateAddress(deployer, 0) ) - // Prefund the account + // Prefund the account, at an address that the contract will be deployed at, + // before it selfdestrucs. We can therefore check that the account itseld is + // NOT destroyed, which is what the currrent version of the spec requires. + // TODO(gballet) revisit after the spec has been modified. gspec.Alloc[contract] = types.Account{ Balance: big.NewInt(100), } - // The goal of this test is to test SELFDESTRUCT that happens in a contract - // execution which is created in **the same** transaction sending the remaining - // balance to itself. - t.Logf("Contract: %v", contract.String()) selfDestructContract := []byte{byte(vm.ADDRESS), byte(vm.SELFDESTRUCT)}