mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Typo is fixed for multiplier (#1103)
This commit is contained in:
parent
0d609f1292
commit
af4215e9f9
@ -34,7 +34,7 @@ const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, wallet
|
||||
console.log("Successfully broadcasted:", result);
|
||||
}
|
||||
|
||||
// Send transaction (using sendTokens with auto gas and custom muliplier)
|
||||
// Send transaction (using sendTokens with auto gas and custom multiplier)
|
||||
{
|
||||
const recipient = "cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5";
|
||||
const amount = coins(1234567, "ucosm");
|
||||
@ -82,7 +82,7 @@ const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, wallet
|
||||
console.log("Successfully broadcasted:", result);
|
||||
}
|
||||
|
||||
// Send transaction (using signAndBroadcast with auto gas and custom muliplier)
|
||||
// Send transaction (using signAndBroadcast with auto gas and custom multiplier)
|
||||
{
|
||||
const recipient = "cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5";
|
||||
const amount = coins(1234567, "ucosm");
|
||||
|
@ -495,8 +495,8 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
||||
if (fee == "auto" || typeof fee === "number") {
|
||||
assertDefined(this.gasPrice, "Gas price must be set in the client options when auto gas is used.");
|
||||
const gasEstimation = await this.simulate(signerAddress, messages, memo);
|
||||
const muliplier = typeof fee === "number" ? fee : 1.3;
|
||||
usedFee = calculateFee(Math.round(gasEstimation * muliplier), this.gasPrice);
|
||||
const multiplier = typeof fee === "number" ? fee : 1.3;
|
||||
usedFee = calculateFee(Math.round(gasEstimation * multiplier), this.gasPrice);
|
||||
} else {
|
||||
usedFee = fee;
|
||||
}
|
||||
|
@ -283,8 +283,8 @@ export class SigningStargateClient extends StargateClient {
|
||||
if (fee == "auto" || typeof fee === "number") {
|
||||
assertDefined(this.gasPrice, "Gas price must be set in the client options when auto gas is used.");
|
||||
const gasEstimation = await this.simulate(signerAddress, messages, memo);
|
||||
const muliplier = typeof fee === "number" ? fee : 1.3;
|
||||
usedFee = calculateFee(Math.round(gasEstimation * muliplier), this.gasPrice);
|
||||
const multiplier = typeof fee === "number" ? fee : 1.3;
|
||||
usedFee = calculateFee(Math.round(gasEstimation * multiplier), this.gasPrice);
|
||||
} else {
|
||||
usedFee = fee;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user