mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-10 22:13:47 +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`
|
// Accumulate merges `other` into `d`
|
||||||
func (d *DeploymentResult) Accumulate(other *DeploymentResult) {
|
func (d *DeploymentResult) Accumulate(other *DeploymentResult) {
|
||||||
for pattern, tx := range other.Txs {
|
maps.Copy(d.Txs, other.Txs)
|
||||||
d.Txs[pattern] = tx
|
maps.Copy(d.Addrs, other.Addrs)
|
||||||
}
|
|
||||||
for pattern, addr := range other.Addrs {
|
|
||||||
d.Addrs[pattern] = addr
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// depTreeBuilder turns a set of unlinked contracts libraries into a set of one
|
// depTreeBuilder turns a set of unlinked contracts libraries into a set of one
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue