mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
mobile: fixed FilterLogs
It used to write a pointer to a local variable, that led to fill a result array with the latest log
This commit is contained in:
parent
0131bd6ff9
commit
7d785c14e1
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ func (ec *EthereumClient) FilterLogs(ctx *Context, query *FilterQuery) (logs *Lo
|
|||
// Temp hack due to vm.Logs being []*vm.Log
|
||||
res := make([]*types.Log, len(rawLogs))
|
||||
for i, log := range rawLogs {
|
||||
res[i] = &log
|
||||
res[i] = &rawLogs[i]
|
||||
}
|
||||
return &Logs{res}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue