File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,10 @@ export async function writeToContract(fastify: FastifyInstance) {
85
85
walletAddress,
86
86
accountAddress,
87
87
} ) ;
88
- const tx = await contract . prepare ( functionName , args , txOverrides ) ;
88
+ const tx = contract . prepare ( functionName , args , {
89
+ value : txOverrides ?. value ,
90
+ gasLimit : txOverrides ?. gas ,
91
+ } ) ;
89
92
90
93
const queueId = await queueTx ( {
91
94
tx,
Original file line number Diff line number Diff line change @@ -5,10 +5,16 @@ export const txOverrides = Type.Object({
5
5
Type . Object ( {
6
6
value : Type . Optional (
7
7
Type . String ( {
8
- examples : [ "0 " ] ,
8
+ examples : [ "10000000000 " ] ,
9
9
description : "Amount of native currency to send" ,
10
10
} ) ,
11
11
) ,
12
+ gas : Type . Optional (
13
+ Type . String ( {
14
+ examples : [ "530000" ] ,
15
+ description : "Gas limit for the transaction" ,
16
+ } ) ,
17
+ ) ,
12
18
} ) ,
13
19
) ,
14
20
} ) ;
You can’t perform that action at this time.
0 commit comments