Skip to content

Commit

Permalink
Merge branch 'fix/cosmos-reward' into 'develop'
Browse files Browse the repository at this point in the history
fix/cosmos-reward

See merge request papers/airgap/airgap-coin-lib!721
  • Loading branch information
godenzim committed Jan 8, 2024
2 parents 9a54899 + f8b05f1 commit 0e34a54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cosmos-core/src/v1/protocol/CosmosBaseProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ export abstract class CosmosBaseProtocolImpl<_Units extends string> implements C
return new CosmosTransaction(
messages,
new CosmosFee(
[new CosmosCoin(this.options.baseUnit, newAmount(metadata.fee!.defaults!.medium).blockchain(metadata.units).value)],
[new CosmosCoin(this.options.baseUnit, newAmount(metadata.fee!.defaults!.high).blockchain(metadata.units).value)],
newAmount(this.options.defaultGas).blockchain(metadata.units).toBigNumber().times(messages.length).toFixed()
),
memo !== undefined ? memo : '',
Expand All @@ -873,7 +873,7 @@ export abstract class CosmosBaseProtocolImpl<_Units extends string> implements C
nodeInfo.network,
account.value.account_number,
account.value.sequence ?? '0',
new BigNumber(newAmount(this.options.defaultGas).blockchain(metadata.units).value),
new BigNumber(newAmount(metadata.fee!.defaults!.high).blockchain(metadata.units).value),
new BigNumber(newAmount(fee).blockchain(metadata.units).value),
memo !== undefined ? memo : ''
)
Expand Down

0 comments on commit 0e34a54

Please sign in to comment.