Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StdFee doesn't apply on signAmino function. #1194

Open
jjangg96 opened this issue Aug 27, 2024 · 1 comment
Open

StdFee doesn't apply on signAmino function. #1194

jjangg96 opened this issue Aug 27, 2024 · 1 comment

Comments

@jjangg96
Copy link

jjangg96 commented Aug 27, 2024

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 jjangg96 reopened this Aug 27, 2024
@jjangg96 jjangg96 changed the title Need to increase fees for Terra Classic StdFee doesn't apply on signAmino function. Aug 27, 2024
@jjangg96
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant