Skip to content

Commit

Permalink
Fix: latest in interact (#416)
Browse files Browse the repository at this point in the history
* BCD-158: remove sender from Fork

* BCD-156: fix latest call in interact
  • Loading branch information
aopoltorzhicky authored Jun 22, 2022
1 parent f15eac7 commit f576a94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions src/components/schema/Schema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,11 @@ export default {
this.show = true;
});
} else {
if (newValue !== "latest") {
this.show = true;
this.model = {};
return;
}
this.api
.getContractEntrypointSchema(
this.network,
Expand All @@ -680,12 +685,11 @@ export default {
this.show = true;
})
.catch((err) => {
if (newValue === "latest") {
if (err) {
console.log(err);
}
this.showError('This contract most likely has not been called yet.');
this.show = false;
} else {
this.showError(err);
}
this.show = true;
});
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</template>
</v-text-field>
</div>
<div class="d-flex">
<div class="d-flex" v-if="!isStorage">
<v-text-field
id="sender"
name="sender"
Expand Down

0 comments on commit f576a94

Please sign in to comment.