Skip to content

Commit

Permalink
chore(lib/ethclient): remove backend clone (#2559)
Browse files Browse the repository at this point in the history
Remove backend clone. 

issue: none
  • Loading branch information
kevinhalliday authored Nov 25, 2024
1 parent 36aaff9 commit d9bb430
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions e2e/solve/devapp/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ func RequestDeposits(ctx context.Context, endpoints xchain.RPCEndpoints, backend
return nil, err
}

backend = backend.Clone()

const numDeposits = 10

depositors, err := makeDepositors(numDeposits, backend)
Expand Down
10 changes: 0 additions & 10 deletions lib/ethclient/ethbackend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,6 @@ func (b *Backend) AddAccount(privkey *ecdsa.PrivateKey) (common.Address, error)
return addr, nil
}

func (b *Backend) Clone() *Backend {
clone := *b
clone.accounts = make(map[common.Address]account)
for addr, acc := range b.accounts {
clone.accounts[addr] = acc
}

return &clone
}

func (b *Backend) Chain() (string, uint64) {
return b.chainName, b.chainID
}
Expand Down

0 comments on commit d9bb430

Please sign in to comment.