// The account is copied before setting, so mutating it // afterwards has no side effects. // Implements Statelike func (s *State) UpdateAccount(account *acm.Account) bool { return s.accounts.Set(account.Address, account.Copy()) }