external triggering of SignRequest
This commit is contained in:
@ -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 = [
|
||||
// {
|
||||
|
Reference in New Issue
Block a user