From 0a8e4835db01d0bb061339c176437b5b07bd602e Mon Sep 17 00:00:00 2001 From: Jordan Krage Date: Thu, 21 Nov 2024 14:41:31 -0600 Subject: [PATCH] accounts/abi: fix MakeTopics big.Int mutation --- accounts/abi/topics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/abi/topics.go b/accounts/abi/topics.go index 7ce9b7273c..4819334ae6 100644 --- a/accounts/abi/topics.go +++ b/accounts/abi/topics.go @@ -42,7 +42,7 @@ func MakeTopics(query ...[]interface{}) ([][]common.Hash, error) { case common.Address: copy(topic[common.HashLength-common.AddressLength:], rule[:]) case *big.Int: - copy(topic[:], math.U256Bytes(rule)) + copy(topic[:], math.U256Bytes(new(big.Int).Set(rule))) case bool: if rule { topic[common.HashLength-1] = 1