Skip to content

Commit

Permalink
fix: use asVow in case owned() throws
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Nov 11, 2024
1 parent 9b57784 commit f6b35fe
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -960,11 +960,11 @@ export const prepareCosmosOrchestrationAccountKit = (
},
/** @type {HostOf<IcaAccount['deactivate']>} */
deactivate() {
return watch(E(this.facets.helper.owned()).deactivate());
return asVow(() => watch(E(this.facets.helper.owned()).deactivate()));
},
/** @type {HostOf<IcaAccount['reactivate']>} */
reactivate() {
return watch(E(this.facets.helper.owned()).reactivate());
return asVow(() => watch(E(this.facets.helper.owned()).reactivate()));
},
/** @type {HostOf<StakingAccountQueries['getDelegation']>} */
getDelegation(validator) {
Expand Down Expand Up @@ -1100,8 +1100,8 @@ export const prepareCosmosOrchestrationAccountKit = (
},
/** @type {HostOf<IcaAccount['executeEncodedTx']>} */
executeEncodedTx(msgs, opts) {
return watch(
E(this.facets.helper.owned()).executeEncodedTx(msgs, opts),
return asVow(() =>
watch(E(this.facets.helper.owned()).executeEncodedTx(msgs, opts)),
);
},
},
Expand Down

0 comments on commit f6b35fe

Please # to comment.