Update tx-sender for API v2

This commit is contained in:
mDuo13
2025-04-11 10:47:22 -07:00
parent b394ea0a78
commit e98cfff5e1

View File

@@ -77,7 +77,7 @@ async function onClickCreateEscrow(
} }
setEscrowWidthPercent(0) setEscrowWidthPercent(0)
if(escrowCreateResponse.result.Sequence === undefined) { if(escrowCreateResponse.result.tx_json.Sequence === undefined) {
errorNotif(submitConstData.alert, errorNotif(submitConstData.alert,
"Error: Unable to get the sequence number from EscrowCreate, so cannot submit an EscrowFinish transaction.") "Error: Unable to get the sequence number from EscrowCreate, so cannot submit an EscrowFinish transaction.")
@@ -95,7 +95,7 @@ async function onClickCreateEscrow(
Account: sendingWallet.address, Account: sendingWallet.address,
TransactionType: "EscrowFinish", TransactionType: "EscrowFinish",
Owner: sendingWallet.address, Owner: sendingWallet.address,
OfferSequence: escrowCreateResponse.result.Sequence OfferSequence: escrowCreateResponse.result.tx_json.Sequence
}) })
} }
} }