gun-eth 1.2.11 → 1.2.13
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -2
- package/src/index.js +3 -8
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -1,12 +1,7 @@
|
|
1
|
-
|
1
|
+
const Gun = require("gun/gun");
|
2
2
|
const SEA = require("gun/sea");
|
3
3
|
const ethers = require("ethers");
|
4
|
-
const SHINE = require("../abis/SHINE.json");
|
5
|
-
|
6
|
-
import { ethers } from "ethers";
|
7
|
-
import SHINE from "../abis/SHINE.json";
|
8
|
-
import SEA from "gun/sea";
|
9
|
-
import Gun from "gun";
|
4
|
+
const SHINE = require("../abis/SHINE.json");
|
10
5
|
|
11
6
|
const SHINE_ABI = SHINE.abi;
|
12
7
|
const SHINE_OPTIMISM_SEPOLIA = SHINE.address;
|
@@ -205,7 +200,7 @@ Gun.chain.shine = function (chain, nodeId, data, callback) {
|
|
205
200
|
// Funzione per verificare on-chain
|
206
201
|
const verifyOnChain = async (nodeId, contentHash) => {
|
207
202
|
console.log("Verifying on chain:", { nodeId, contentHash });
|
208
|
-
const signer = await
|
203
|
+
const signer = await getSigner();
|
209
204
|
const contract = new ethers.Contract(
|
210
205
|
SHINE_CONTRACT_ADDRESS,
|
211
206
|
SHINE_ABI,
|