We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3a90d95 + 969c377 commit 80f3c61Copy full SHA for 80f3c61
lib/components/TxDialog/index.vue
@@ -141,7 +141,12 @@ async function initData() {
141
view.value = 'input';
142
p.value = JSON.parse(props.params || '{}');
143
getAccountInfo(props.endpoint, props.sender).then((res) => {
144
- memo.value = `did:hp:${base64ToHex(res.info.pub_key.key)}`;
+ 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
150
});
151
const fee = convert.baseToUnit(p.value?.fees || { amount: '1', denom: 'hp' }, 'hp') // 1HP for default fee
152
feeAmount.value = Number(fee.amount);
0 commit comments