Update chain.go

This commit is contained in:
Felix Lange 2025-01-10 14:49:15 +01:00 committed by GitHub
parent 849366bea4
commit 47083fdc44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -167,7 +167,7 @@ func (c *Chain) RootAt(height int) common.Hash {
// pre-funded accounts list.
func (c *Chain) GetSender(idx int) (common.Address, uint64) {
accounts := maps.Keys(c.senders)
slices.SortFunc(accounts, commmon.Address.Cmp)
slices.SortFunc(accounts, common.Address.Cmp)
addr := accounts[idx]
return addr, c.senders[addr].Nonce
}