Update accounts/abi/bind/dep_tree.go

Co-authored-by: Martin HS <martin@swende.se>
This commit is contained in:
jwasinger 2024-12-18 16:27:05 +07:00 committed by Felix Lange
parent 4f7949f85f
commit de00bb3a29

View file

@ -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