File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ describe('getTransaction', () => {
30
30
const transaction = await safeApiKit . getTransaction ( safeTxHash )
31
31
chai . expect ( transaction . safeTxHash ) . to . be . equal ( safeTxHash )
32
32
chai . expect ( transaction . safe ) . to . be . eq ( API_TESTING_SAFE . address )
33
- chai . expect ( transaction . nonce ) . to . be . a ( 'string ' )
34
- chai . expect ( transaction . safeTxGas ) . to . be . a ( 'string ' )
35
- chai . expect ( transaction . baseGas ) . to . be . a ( 'string ' )
33
+ chai . expect ( transaction . nonce ) . to . be . a ( 'number ' )
34
+ chai . expect ( transaction . safeTxGas ) . to . be . a ( 'number ' )
35
+ chai . expect ( transaction . baseGas ) . to . be . a ( 'number ' )
36
36
} )
37
37
} )
Original file line number Diff line number Diff line change @@ -1255,12 +1255,12 @@ class Safe {
1255
1255
operation : serviceTransactionResponse . operation
1256
1256
}
1257
1257
const options = {
1258
- safeTxGas : serviceTransactionResponse . safeTxGas ,
1259
- baseGas : serviceTransactionResponse . baseGas ,
1258
+ safeTxGas : serviceTransactionResponse . safeTxGas . toString ( ) ,
1259
+ baseGas : serviceTransactionResponse . baseGas . toString ( ) ,
1260
1260
gasPrice : serviceTransactionResponse . gasPrice ,
1261
1261
gasToken : serviceTransactionResponse . gasToken ,
1262
1262
refundReceiver : serviceTransactionResponse . refundReceiver ,
1263
- nonce : Number ( serviceTransactionResponse . nonce )
1263
+ nonce : serviceTransactionResponse . nonce
1264
1264
}
1265
1265
const safeTransaction = await this . createTransaction ( {
1266
1266
transactions : [ safeTransactionData ] ,
Original file line number Diff line number Diff line change @@ -232,11 +232,11 @@ export type SafeMultisigTransactionResponse = {
232
232
readonly data ?: string
233
233
readonly operation : number
234
234
readonly gasToken : string
235
- readonly safeTxGas : string
236
- readonly baseGas : string
235
+ readonly safeTxGas : number
236
+ readonly baseGas : number
237
237
readonly gasPrice : string
238
238
readonly refundReceiver ?: string
239
- readonly nonce : string
239
+ readonly nonce : number
240
240
readonly executionDate : string
241
241
readonly submissionDate : string
242
242
readonly modified : string
You can’t perform that action at this time.
0 commit comments