From 384fd3bd9946947970c17a430739318092cc60a1 Mon Sep 17 00:00:00 2001 From: Chris Ziogas Date: Wed, 30 Aug 2023 16:10:25 +0300 Subject: [PATCH] core/vm: fixes --- core/vm/evmc.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/vm/evmc.go b/core/vm/evmc.go index de18b20906..385380ff19 100644 --- a/core/vm/evmc.go +++ b/core/vm/evmc.go @@ -389,7 +389,9 @@ func (host *hostContext) Selfdestruct(evmcAddr evmc.Address, evmcBeneficiary evm db.AddRefund(vars.SelfdestructRefundGas) } db.AddBalance(beneficiary, db.GetBalance(addr)) - return db.SelfDestruct(addr) + db.SelfDestruct(addr) + // TODO (ziogaschr): check what to return + return true } func (host *hostContext) GetTxContext() evmc.TxContext { @@ -398,7 +400,7 @@ func (host *hostContext) GetTxContext() evmc.TxContext { Origin: evmc.Address(host.env.TxContext.Origin), Coinbase: evmc.Address(host.env.Context.Coinbase), Number: host.env.Context.BlockNumber.Int64(), - Timestamp: host.env.Context.Time, + Timestamp: int64(host.env.Context.Time), GasLimit: int64(host.env.Context.GasLimit), ChainID: evmc.Hash(common.BigToHash(host.env.chainConfig.GetChainID())), BaseFee: evmc.Hash{},