Skip to content

Commit

Permalink
Merge pull request #2 from mich3lang3lo/main
Browse files Browse the repository at this point in the history
fix: get and set state `params`
  • Loading branch information
mrcnk authored Apr 2, 2024
2 parents 69159d8 + 269a311 commit 5dbf091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
};
const getCredential = async () => {
const response = await window.mina.request({
method: 'mina_getState', params: []
method: 'mina_getState', params: {query: {issuer: 'University of Example'}, props: []}
})
console.log(response);
results.set({
Expand All @@ -92,7 +92,7 @@
};
const setCredentialState = async () => {
const response = await window.mina.request({
method: 'mina_setState', params: [exampleCredential]
method: 'mina_setState', params: {objectName: "exampleCredential", object: exampleCredential}
})
console.log(response);
// nothing to write in the app
Expand Down

0 comments on commit 5dbf091

Please sign in to comment.