I'm trying to make use of assembleTransaction by joining a simulation and an original transaction. Here's both the tx XDR and the simulation response. When trying to join them both together I'm getting error: XDR Write Error: invalid u32 value
AAAAAgAAAABnZR8W8bBF+dVfyUIrgZbB7lATRWE6iriJnbLUp5+Gsf////8AAAPfAAAAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABdM0OKEDyvwCjXBXhxEx6oTcocoEtXTmGNAXf2QpurmsAAAADcnVuAAAAAAQAAAADAAAAAQAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAA==
{
transactionData: "AAAAAAAAAAIAAAAGAAAAAXTNDihA8r8Ao1wV4cRMeqE3KHKBLV05hjQF39kKbq5rAAAAFAAAAAEAAAAHsaQiG9oRqgn2LcBOUPgIf4Qc6ZP4cLS01umYovFVNGcAAAAAADxREAAABFAAAAAAAAAAAAAAuIM=",
minResourceFee: "47235",
events: [ "AAAAAQAAAAAAAAAAAAAAAgAAAAAAAAADAAAADwAAAAdmbl9jYWxsAAAAAA0AAAAgdM0OKEDyvwCjXBXhxEx6oTcocoEtXTmGNAXf2QpurmsAAAAPAAAAA3J1bgAAAAAQAAAAAQAAAAQAAAADAAAAAQAAAAEAAAABAAAAAQ==",
"AAAAAQAAAAAAAAABdM0OKEDyvwCjXBXhxEx6oTcocoEtXTmGNAXf2QpurmsAAAACAAAAAAAAAAIAAAAPAAAACWZuX3JldHVybgAAAAAAAA8AAAADcnVuAAAAAAE="
],
results: [
{
auth: [],
xdr: "AAAAAQ==",
}
],
cost: {
cpuInsns: "952912",
memBytes: "1231270",
},
latestLedger: 1828,
}
Here's the specific error
622 | /* harmony export */ XdrReaderError: () => (/* binding */ XdrReaderError),
623 | /* harmony export */ XdrWriterError: () => (/* binding */ XdrWriterError)
624 | /* harmony export */ });
625 | class XdrWriterError extends TypeError {
626 | constructor(message) {
627 | super(`XDR Write Error: ${message}`);
^
error: XDR Write Error: invalid u32 value
at new XdrWriterError (/Users/tylervanderhoeven/Desktop/Web/Soroban/soroban-i-like-big-budgets/node_modules/@stellar/js-xdr/lib/xdr.js:627:5)
at write (/Users/tylervanderhoeven/Desktop/Web/Soroban/soroban-i-like-big-budgets/node_modules/@stellar/js-xdr/lib/xdr.js:1922:108)
at write (/Users/tylervanderhoeven/Desktop/Web/Soroban/soroban-i-like-big-budgets/node_modules/@stellar/js-xdr/lib/xdr.js:1580:7)
at write (/Users/tylervanderhoeven/Desktop/Web/Soroban/soroban-i-like-big-budgets/node_modules/@stellar/js-xdr/lib/xdr.js:1780:5)
at write (/Users/tylervanderhoeven/Desktop/Web/Soroban/soroban-i-like-big-budgets/node_modules/@stellar/js-xdr/lib/xdr.js:1580:7)
at toXDR (/Users/tylervanderhoeven/Desktop/Web/Soroban/soroban-i-like-big-budgets/node_modules/@stellar/js-xdr/lib/xdr.js:2160:5)
at signatureBase (/Users/tylervanderhoeven/Desktop/Web/Soroban/soroban-i-like-big-budgets/node_modules/@stellar/stellar-base/lib/transaction.js:293:14)
at hash (/Users/tylervanderhoeven/Desktop/Web/Soroban/soroban-i-like-big-budgets/node_modules/@stellar/stellar-base/lib/transaction_base.js:224:33)
at sign (/Users/tylervanderhoeven/Desktop/Web/Soroban/soroban-i-like-big-budgets/node_modules/@stellar/stellar-base/lib/transaction_base.js:88:20)
at /Users/tylervanderhoeven/Desktop/Web/Soroban/soroban-i-like-big-budgets/index_1.ts:77:5