gun-eth 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +6 -1
  2. 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
- const contentHash = ethers.keccak256(ethers.toUtf8Bytes(dataString));
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gun-eth",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A GunDB plugin for Ethereum, and Web3",
5
5
  "main": "index.js",
6
6
  "scripts": {