File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
services/ymax-planner/src Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { type SigningSmartWalletKit } from '@agoric/client-utils';
22import type { OfferSpec } from '@agoric/smart-wallet/src/offers' ;
33import type { TxStatus } from '@aglocal/portfolio-contract/src/resolver/constants.js' ;
44import type { TxId } from '@aglocal/portfolio-contract/src/resolver/types' ;
5+ import type { StdFee } from '@cosmjs/stargate' ;
56
67type ResolveTxParams = {
78 signingSmartWalletKit : SigningSmartWalletKit ;
@@ -10,6 +11,11 @@ type ResolveTxParams = {
1011 proposal ?: object ;
1112} ;
1213
14+ const smartWalletFee : StdFee = {
15+ amount : [ { denom : 'ubld' , amount : '15000' } ] , // 0.015 BLD
16+ gas : '19700000' ,
17+ } ;
18+
1319const getInvitationMakers = async ( wallet : SigningSmartWalletKit ) => {
1420 const getCurrentWalletRecord = await wallet . query . getCurrentWalletRecord ( ) ;
1521 const invitation = getCurrentWalletRecord . offerToUsedInvitation
@@ -49,6 +55,6 @@ export const resolvePendingTx = async ({
4955 proposal,
5056 } ) ;
5157
52- const result = await signingSmartWalletKit . executeOffer ( action ) ;
58+ const result = await signingSmartWalletKit . executeOffer ( action , smartWalletFee ) ;
5359 return result ;
5460} ;
You can’t perform that action at this time.
0 commit comments