gun-eth 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -161,8 +161,12 @@ Gun.chain.shine = function (chain, nodeId, data, callback) {
|
|
161
161
|
return;
|
162
162
|
}
|
163
163
|
|
164
|
+
console.log("existingData", existingData);
|
165
|
+
|
164
166
|
const dataString = JSON.stringify(existingData);
|
165
|
-
|
167
|
+
console.log("dataString", dataString);
|
168
|
+
const contentHash = dataString;
|
169
|
+
console.log("contentHash", contentHash);
|
166
170
|
|
167
171
|
try {
|
168
172
|
const { isValid, timestamp, updater } = await verifyOnChain(
|
@@ -195,6 +199,7 @@ Gun.chain.shine = function (chain, nodeId, data, callback) {
|
|
195
199
|
const contentHash = ethers.keccak256(ethers.toUtf8Bytes(dataString));
|
196
200
|
|
197
201
|
gun.get(newNodeId).put(data, async (ack) => {
|
202
|
+
console.log("ack", ack);
|
198
203
|
if (ack.err) {
|
199
204
|
if (callback) callback({ err: "Error saving data to GunDB" });
|
200
205
|
return;
|