MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / getAccountNonce

Method getAccountNonce

cmd/cql-eth-exchange/exchange.go:590–604  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

588}
589
590func (e *Exchange) getAccountNonce() (nonce cinter.AccountNonce, err error) {
591 var (
592 req = new(ctypes.NextAccountNonceReq)
593 resp = new(ctypes.NextAccountNonceResp)
594 )
595
596 req.Addr = e.vaultAddress
597
598 err = mux.RequestBP(route.MCCNextAccountNonce.String(), req, resp)
599 if err == nil {
600 nonce = resp.Nonce
601 }
602
603 return
604}
605
606func (e *Exchange) transferToken(target proto.AccountAddress, nonce cinter.AccountNonce, amount uint64) (txHash hash.Hash, err error) {
607 var (

Callers 1

processPendingTxsMethod · 0.95

Calls 2

RequestBPFunction · 0.92
StringMethod · 0.45

Tested by

no test coverage detected