Skip to content

Commit 80f3c61

Browse files
authored
Merge pull request #17 from hippo-protocol/feature/validator
fix: handle account for sequence 0
2 parents 3a90d95 + 969c377 commit 80f3c61

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/components/TxDialog/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,12 @@ async function initData() {
141141
view.value = 'input';
142142
p.value = JSON.parse(props.params || '{}');
143143
getAccountInfo(props.endpoint, props.sender).then((res) => {
144-
memo.value = `did:hp:${base64ToHex(res.info.pub_key.key)}`;
144+
if (!res.info?.pub_key) {
145+
memo.value = 'did on board';
146+
}
147+
else {
148+
memo.value = `did:hp:${base64ToHex(res.info.pub_key.key)}`;
149+
}
145150
});
146151
const fee = convert.baseToUnit(p.value?.fees || { amount: '1', denom: 'hp' }, 'hp') // 1HP for default fee
147152
feeAmount.value = Number(fee.amount);

0 commit comments

Comments
 (0)