Skip to content

wallet API returns asset list plus error #2006

@Maxnflaxl

Description

@Maxnflaxl

Bug title
Express the problem in a single concise sentence

Bug description
A clear and concise description of what the bug is.

To Reproduce

function getAssetList() {
    return new Promise((resolve, reject) => {
        var params = {
            "refresh": true,
            "height": 3170671
        };

        // Call the API
        wallet_api.callApi('assets_list', params, (error, result, full) => {
            if (error) {
                console.log("Error invoking contract:", error);  // Look here for example. The asset info is there, but an error is returned.

                reject(error);  // Call reject with the error
                return;
            }

            console.log(result);

            // Resolve the Promise with the result
            resolve(result);
        });
    });
}

Current behaviour
API returns an error, but also the wanted data about assets.

Error: {error: "no valid api call result", answer: {assets: Array(168), id: " call-2", jsonrpc: "2.0"}

Expected behaviour
returns asset list only

Platform and build

  • Desktop wallet 7.5

reported by @iDoHaveAtgHandleNow on TG

Metadata

Metadata

Assignees

Labels

apiIssues related to Wallet APIassetsconfidential assets

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions