Skip to content

Commit b631861

Browse files
committed
fix: dereference error in UnmarshalJSON for BatchCall
1 parent 3d076ae commit b631861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethrpc/batch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (b *BatchCall) UnmarshalJSON(data []byte) error {
3939
for i, msg := range results {
4040
(*b)[i].response = msg
4141
if msg.Error != nil {
42-
(*b)[i].err = msg.Error
42+
(*b)[i].err = *msg.Error
4343
}
4444
}
4545
return nil

0 commit comments

Comments
 (0)