Skip to content

Commit

Permalink
bump up gas multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepuppy committed Sep 30, 2024
1 parent 6e3d456 commit ca1bb2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions v4-client-js/src/clients/modules/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,14 +873,18 @@ export class Post {
affiliate: string,
broadcastMode?: BroadcastMode,
): Promise<BroadcastTxAsyncResponse | BroadcastTxSyncResponse | IndexedTx> {
const msg = this.composer.composeMsgRegisterAffiliate(subaccount.address, affiliate);
const msg = this.registerAffiliateMsg(subaccount.address, affiliate);
return this.send(
subaccount.wallet,
() => Promise.resolve([msg]),
false,
this.defaultGasPrice,
undefined,
undefined,
broadcastMode,
);
}

registerAffiliateMsg(...args: Parameters<Composer['composeMsgRegisterAffiliate']>): EncodeObject {
return this.composer.composeMsgRegisterAffiliate(...args);
}
}
2 changes: 1 addition & 1 deletion v4-client-js/src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const BROADCAST_TIMEOUT_MS: number = 8_000;
export const API_TIMEOUT_DEFAULT_MS: number = 5_000;

// Gas
export const GAS_MULTIPLIER: number = 1.4;
export const GAS_MULTIPLIER: number = 1.5;

export const ZERO_FEE: StdFee = {
amount: [],
Expand Down

0 comments on commit ca1bb2c

Please sign in to comment.