add comments

This commit is contained in:
Bill He 2024-01-23 14:46:44 -08:00
parent 1776f9183b
commit dc037c1d63
No known key found for this signature in database
GPG Key ID: 73AEEF9D79E5BBF8
2 changed files with 3 additions and 0 deletions

View File

@ -201,6 +201,7 @@ export const useSubaccountContext = ({ localDydxWallet }: { localDydxWallet?: Lo
value: {
...transaction.msg,
timeoutTimestamp: transaction.msg.timeoutTimestamp
// Squid returns timeoutTimestamp as Long, but the signer expects BigInt
? BigInt(Long.fromValue(transaction.msg.timeoutTimestamp).toString())
: undefined,
},

View File

@ -370,6 +370,7 @@ class DydxChainTransactions implements AbacusDYDXChainTransactionsProtocol {
value: {
...params.msg,
timeoutTimestamp: params.msg.timeoutTimestamp
// Squid returns timeoutTimestamp as Long, but the signer expects BigInt
? BigInt(Long.fromValue(params.msg.timeoutTimestamp).toString())
: undefined,
},
@ -425,6 +426,7 @@ class DydxChainTransactions implements AbacusDYDXChainTransactionsProtocol {
value: {
...parsedIbcPayload.msg,
timeoutTimestamp: parsedIbcPayload.msg.timeoutTimestamp
// Squid returns timeoutTimestamp as Long, but the signer expects BigInt
? BigInt(Long.fromValue(parsedIbcPayload.msg.timeoutTimestamp).toString())
: undefined,
},