From de00bb3a2974a323c1000e4a22dcc7ff4893a39b Mon Sep 17 00:00:00 2001 From: jwasinger Date: Wed, 18 Dec 2024 16:27:05 +0700 Subject: [PATCH] Update accounts/abi/bind/dep_tree.go Co-authored-by: Martin HS --- accounts/abi/bind/dep_tree.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/accounts/abi/bind/dep_tree.go b/accounts/abi/bind/dep_tree.go index b7bb7f2eeb..53052870b2 100644 --- a/accounts/abi/bind/dep_tree.go +++ b/accounts/abi/bind/dep_tree.go @@ -41,12 +41,8 @@ type DeploymentResult struct { // Accumulate merges `other` into `d` func (d *DeploymentResult) Accumulate(other *DeploymentResult) { - for pattern, tx := range other.Txs { - d.Txs[pattern] = tx - } - for pattern, addr := range other.Addrs { - d.Addrs[pattern] = addr - } + maps.Copy(d.Txs, other.Txs) + maps.Copy(d.Addrs, other.Addrs) } // depTreeBuilder turns a set of unlinked contracts libraries into a set of one