external triggering of SignRequest

This commit is contained in:
Samuel Andert
2023-08-30 19:54:57 +02:00
parent 9aa3bfc0d2
commit 978e438854
4 changed files with 31 additions and 65 deletions

View File

@ -2,6 +2,7 @@
<script lang="ts">
import { ethers } from "ethers";
import { onMount } from "svelte";
import { signRequest } from "./stores.js";
// import { fetchBalance, serialize } from "@wagmi/core";
export let messageToSign = {};
@ -93,6 +94,13 @@
}
}
signRequest.subscribe((value) => {
if (value) {
signRequest.set(false);
signMessageWithPKP();
}
});
// async function getJWT() {
// var unifiedAccessControlConditions = [
// {