From d976d792a1f58b1374e4e30b6e7ec6f342abec4f Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Thu, 18 Jul 2024 20:14:31 +0800 Subject: [PATCH] bug fix: unlock tag --- src/components/chain/contract/Locker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/chain/contract/Locker.js b/src/components/chain/contract/Locker.js index afd211a..67b4f06 100644 --- a/src/components/chain/contract/Locker.js +++ b/src/components/chain/contract/Locker.js @@ -80,7 +80,9 @@ export class Locker { if (errcode) { throw new Error(errmsg) } - + if (chainId == parseInt(import.meta.env.VUE_APP_NET_ID_MAIN)) { + trans_req.from = this.bc.store.eoaAddress + } return this.sendUnlockOrMint(provider, trans_req) }