@ayanworks/polygon-did-registry-contract 2.0.1-alpha.6 → 2.0.1-alpha.7
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.
|
@@ -180,8 +180,10 @@ contract PolygonDidRegistry {
|
|
|
180
180
|
returns (address, string memory, string memory)
|
|
181
181
|
{
|
|
182
182
|
require(_id != address(0), 'Invalid address provided');
|
|
183
|
+
if (bytes(resourceData[_id][_resourceId]).length == 0) {
|
|
184
|
+
keysById[_id].push(_resourceId);
|
|
185
|
+
}
|
|
183
186
|
resourceData[_id][_resourceId] = _resourcePayload;
|
|
184
|
-
keysById[_id].push(_resourceId);
|
|
185
187
|
emit ResourceAdded(_id, _resourceId, _resourcePayload);
|
|
186
188
|
return (_id, _resourceId, _resourcePayload);
|
|
187
189
|
}
|
package/package.json
CHANGED
package/sst-config.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sourceHash":"
|
|
1
|
+
{"sourceHash":"0x97a599fbc455201c7d5253480af7bf0b22264a53b3c5933af397217c88ba64d4"}
|