Skip to content

Commit 2098b64

Browse files
committed
account_create prompt fix
avoid owner object in account_create breaking account name lookup logic
1 parent 1ae5564 commit 2098b64

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

src/lib/blockchains/BitShares.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ export default class BitShares extends BlockchainAPI {
17141714

17151715
for (let k = 0; k < idKeys.length; k++) {
17161716
const id = get(op, idKeys[k]);
1717-
if (id && !accountsToFetch.includes(id)) {
1717+
if (id && typeof id === 'string' && !accountsToFetch.includes(id)) {
17181718
accountsToFetch.push(id);
17191719
}
17201720
}

src/lib/blockchains/bitshares/beautify.js

+5-10
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ export default async function beautify(
297297
_feeAsset.precision
298298
),
299299
},
300-
},
301-
,
300+
}
302301
];
303302
}
304303
} else if (opType == 5) {
@@ -433,8 +432,7 @@ export default async function beautify(
433432
_feeAsset.precision
434433
),
435434
},
436-
},
437-
,
435+
}
438436
];
439437
}
440438
} else if (opType == 6) {
@@ -485,8 +483,7 @@ export default async function beautify(
485483
_feeAsset.precision
486484
),
487485
},
488-
},
489-
,
486+
}
490487
];
491488
}
492489
} else if (opType == 7) {
@@ -2082,8 +2079,7 @@ export default async function beautify(
20822079
_feeAsset.precision
20832080
),
20842081
},
2085-
},
2086-
,
2082+
}
20872083
];
20882084
} else if (opType == 32) {
20892085
// vesting_balance_create
@@ -2507,8 +2503,7 @@ export default async function beautify(
25072503
_feeAsset.precision
25082504
),
25092505
},
2510-
},
2511-
,
2506+
}
25122507
];
25132508
} else if (opType == 41) {
25142509
// transfer_from_blind

0 commit comments

Comments
 (0)