EmerisHQ / emeris-extension

The Emeris Browser Extension
Apache License 2.0
2 stars 1 forks source link

custom tx: data tab is not working #202

Open eitjuh opened 2 years ago

eitjuh commented 2 years ago

See this fix: https://github.com/EmerisHQ/emeris-extension/pull/201

When trying a custom tx like below, the data tab is loading forever

data-keeps-loading

window.emeris.signTransaction({
    chainId: 'cosmos-hub',
    signingAddress: 'cosmos1jfg84tpacwx4x3qnvt2ava0apzec9dz3mmd59g',
    messages: [
        {
            type: 'fefwfe',
            data: {
                amount: { denom: 'uatom', amount: 1 },
                chain_name: 'cosmos-hub',
                to_address: 'cosmos1jfg84tpacwx4x3qnvt2ava0apzec9dz3mmd59g',
                from_address: 'cosmos1jfg84tpacwx4x3qnvt2ava0apzec9dz3mmd59g'
            }
        },
    ],
    fee: {
        gas: "200000",
        amount: [{
amount: 1,
        denom: 'uatom'}]
    }
    }).then(console.log)
faboweb commented 2 years ago

I guess type: 'fefwfe', causes an error. Should be caught.