update xrpl to 4.0.0

This commit is contained in:
nitowa
2024-10-11 16:34:15 +02:00
parent 335bff7094
commit 94a006496a
5 changed files with 457 additions and 288 deletions
+7 -4
View File
@@ -116,7 +116,8 @@ export class xrpIO {
throw new Error(`Insufficient funds to send transaction. See tx ${response.result.hash}`)
}
this.dbg("Tx finalized", response.result.hash, response.result.Sequence)
this.dbg("Tx finalized", response.result.hash, response.result.tx_json.Sequence)
return response
}
@@ -187,11 +188,13 @@ export class xrpIO {
}
const tx = await this.getTransaction(hash)
if(verifyOwner && tx.result.Account != verifyOwner){
throw new CannotVerifyOwnerError(hash, tx.result.Account, verifyOwner)
if(verifyOwner && tx.result.tx_json.Account != verifyOwner){
throw new CannotVerifyOwnerError(hash, tx.result.tx_json.Account, verifyOwner)
}
const memo = tx.result.Memos[0].Memo
const memo = tx.result.tx_json.Memos[0].Memo
const memoParsed = {
data: hexDecode(memo.MemoData),
format: hexDecode(memo.MemoFormat),