mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 15:46:43 +00:00
Update accounts/abi/bind/dep_tree.go
Co-authored-by: Martin HS <martin@swende.se>
This commit is contained in:
parent
4f7949f85f
commit
de00bb3a29
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue