Closed neeboo closed 3 years ago
https://rosetta-api.internetcomputer.org
combine
https://github.com/dfinity/rosetta-client/blob/e24bd52a862fa56c9bc9812707762c6efb561b1e/lib/construction_combine.js#L49
assert(unsigned_transaction.updates.length === 1);
actually after using cbor_decode, the result would be like :
cbor_decode
{ "update":{ canister_id: <Buffer 00 00 00 00 00 00 00 02 01 01>, ... }, "ingress_expiries":[..., ..., ...,] }
which there is no such updates key/value exist, causing the assert fail.
updates
assert((unsigned_transaction.update !== undefined || unsigned_transaction.update !== null) );
after that, should change the for(const update of ...) loop. It would be like:
for(const update of ...)
const envelopes = []; const { update } = unsigned_transaction; const request_envelopes = []; ...
Close due to latest docker release
https://rosetta-api.internetcomputer.org
as baseUrl.combine
functionhttps://github.com/dfinity/rosetta-client/blob/e24bd52a862fa56c9bc9812707762c6efb561b1e/lib/construction_combine.js#L49
actually after using
cbor_decode
, the result would be like :which there is no such
updates
key/value exist, causing the assert fail.after that, should change the
for(const update of ...)
loop. It would be like: