Skip to content

Commit

Permalink
no need to be logged to read from contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
Viterbo committed Jun 13, 2024
1 parent 604d0d7 commit 3ffa2e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/ContractTab/ContractInterface.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ onMounted(async () => {
:contract="props.contract"
:group="props.write ? 'write' : 'read'"
:run-label="props.write ? 'Write' : 'Query'"
:write="props.write"
/>
</div>
</q-card>
Expand Down
6 changes: 5 additions & 1 deletion src/components/ContractTab/FunctionInterface.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export default defineComponent({
type: String,
default: null,
},
write: {
type: Boolean,
required: true,
},
},
data : () => {
const decimalOptions = [{
Expand Down Expand Up @@ -211,7 +215,7 @@ export default defineComponent({
this.showLoginModal = true;
},
async run() {
if (!this.isLoggedIn){
if (!this.isLoggedIn && this.write){
this.login();
return;
}
Expand Down

0 comments on commit 3ffa2e0

Please sign in to comment.