code: func (ms *ManagedState) NewNonce(addr common.Address) uint64 {
  	ms.mu.Lock()
  	defer ms.mu.Unlock()
  
  	account := ms.getAccount(addr)
  	for i, nonce := range account.nonces {
  		if !nonce {
  			return account.nstart + uint64(i)
  		}
  	}
  	account.nonces = append(account.nonces, true)
  
  	return uint64(len(account.nonces)-1) + account.nstart
  }
docs: // NewNonce returns the new canonical nonce for the managed account