chainapsis / keplr-wallet

The most powerful wallet for the Cosmos ecosystem and the Interchain
https://www.keplr.app
Other
764 stars 456 forks source link

StdFee doesn't apply on signAmino function. #1194

Open jjangg96 opened 1 month ago

jjangg96 commented 1 month ago

StdFee doesn't apply on signAmino function.

const fee: StdFee = {
        amount: [{
            amount: gasPrice.amount.multiply(Uint53.fromString(gasLimit.toString())).toString(),
            denom: chainInfo[chainId].denom,
        }, {
            amount: "50",
            denom: "uusd",
        }],
        gas: gasLimit.toString(),
    };

If I write more than one amount like this, the fee will be applied.

const fee: StdFee = {
        amount: [{
            amount: gasPrice.amount.multiply(Uint53.fromString(gasLimit.toString())).toString(),
            denom: chainInfo[chainId].denom,
        }],
        gas: gasLimit.toString(),
    };

However, if I write only one less, Keplr Sign will not apply the fee.

jjangg96 commented 1 month ago

When gasPrice is set to 30 and 1 amount is entered in fee.amount

image

When setting gasPrice to 30 and adding 50uusd to fee.amount for 2 amounts

image