Skip to content

Commit 1582a36

Browse files
FletcherManfletcher.fan
and
fletcher.fan
authored
add from/to address for proof if not exist (#167)
Co-authored-by: fletcher.fan <[email protected]>
1 parent 03be7f1 commit 1582a36

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rollup/tracing/tracing.go

+7
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,13 @@ func (env *TraceEnv) getTxResult(state *state.StateDB, index int, block *types.B
386386
// merge required proof data
387387
proofAccounts := structLogger.UpdatedAccounts()
388388
proofAccounts[vmenv.FeeRecipient()] = struct{}{}
389+
// add from/to address if it does not exist
390+
if _, ok := proofAccounts[from]; !ok {
391+
proofAccounts[from] = struct{}{}
392+
}
393+
if _, ok := proofAccounts[*to]; !ok {
394+
proofAccounts[*to] = struct{}{}
395+
}
389396
for addr := range proofAccounts {
390397
addrStr := addr.String()
391398

0 commit comments

Comments
 (0)