@leofcoin/workers 1.3.10 → 1.3.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/workers",
3
- "version": "1.3.10",
3
+ "version": "1.3.11",
4
4
  "description": "Workers used in @leofcoin/chain",
5
5
  "type": "module",
6
6
  "exports": {
@@ -34,7 +34,7 @@ const runContract = async ({decoded, hash, encoded}) => {
34
34
  const params = decoded.constructorParameters
35
35
  try {
36
36
 
37
- const func = new Function(new TextDecoder().decode(contract))
37
+ const func = new Function(new TextDecoder().decode(decoded.contract))
38
38
  const Contract = func()
39
39
 
40
40
  globalThis.msg = createMessage(decoded.creator)