Skip to content

getWalletVerbose: errors are not handled #86

@vovapi

Description

@vovapi

Errors are not handled (particularly in Ether case):

EventGetAdressNonce errors are simply ignored (if EventGetAdressBalance has nil error):

Multy-back/client/rest.go

Lines 1404 to 1409 in 527bb21

case currencies.ETHTest:
nonce, err = restClient.ETH.CliTest.EventGetAdressNonce(context.Background(), &adr)
amount, err = restClient.ETH.CliTest.EventGetAdressBalance(context.Background(), &adr)
case currencies.ETHMain:
nonce, err = restClient.ETH.CliMain.EventGetAdressNonce(context.Background(), &adr)
amount, err = restClient.ETH.CliMain.EventGetAdressBalance(context.Background(), &adr)

GetAllWalletEthTransactions simply not handled

err = restClient.userStore.GetAllWalletEthTransactions(user.UserID, currencyId, networkId, &userTxs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions