Assessment reports>Pontem Aptos Wallet>Discussion>Typographical error

Typographical error in result structure

await actions.message(
requestType,
{ id, origin },
{
    success: true,
    result: {
    address: message.address ? currentAccount?.address : false,
    application: message.application ? origin : false,
    chainId: message.chainId ? +chainId : false,
    fullMessage: messageToSign,
    message: message.message,
    none: message.nonce,
    prefix: 'APTOS',
    signature: signed,
    },
});

The nonce of the response message body is saved in a key called none instead of nonce.

Remediation

A fix was introduced in commit a9c748a3.

Zellic © 2024Back to top ↑