Fix use filecoin addr + other small refactor

After changing in prev commit to use to ethereum addresses the
comparison does not make sense against builtin actors. This
fixes that by storing also the filecoin addresses in each trace

Also renamed filecoin related fields to Filecoin prefix.

Also remove requirement call to InvokeContract needed to come
from a evm actor
This commit is contained in:
Fridrik Asmundsson
2023-08-28 17:48:22 +00:00
parent cf255127a4
commit ee3cdf0e97
3 changed files with 33 additions and 26 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ package full
import (
"bytes"
"context"
"encoding/hex"
"errors"
"fmt"
"os"
@@ -935,7 +934,7 @@ func (a *EthModule) EthTraceReplayBlockTransactions(ctx context.Context, blkNum
}
t := ethtypes.EthTraceReplayBlockTransaction{
Output: hex.EncodeToString(ir.MsgRct.Return),
Output: ir.MsgRct.Return,
TransactionHash: *txHash,
StateDiff: nil,
VmTrace: nil,