@leofcoin/chain 1.4.82 → 1.4.83

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.
@@ -6136,7 +6136,15 @@ const execute = async (contract, method, params) => {
6136
6136
  // state.put(result)
6137
6137
  return result
6138
6138
  } catch (e) {
6139
- throw e
6139
+ throw new Error(
6140
+ `
6141
+ error: ${e}
6142
+
6143
+ contract: ${contract}
6144
+ method: ${method}
6145
+ params: ${JSON.stringify(params, null, '\t')}
6146
+ `
6147
+ )
6140
6148
  }
6141
6149
  };
6142
6150
 
@@ -1,5 +1,5 @@
1
1
  declare namespace _default {
2
- const datadir: string;
3
- const configPath: string;
2
+ let datadir: string;
3
+ let configPath: string;
4
4
  }
5
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  declare namespace _default {
2
2
  namespace block {
3
- const size: number;
3
+ let size: number;
4
4
  }
5
5
  }
6
6
  export default _default;
@@ -10,7 +10,7 @@ export default class Contract extends Transaction {
10
10
  * @param {Array} constructorParameters
11
11
  * @returns lib.createContractMessage
12
12
  */
13
- createContractMessage(creator: Address, contract: string, constructorParameters?: any[]): Promise<import("@leofcoin/messages").ContractMessage>;
13
+ createContractMessage(creator: Address, contract: string, constructorParameters?: any[]): Promise<any>;
14
14
  /**
15
15
  *
16
16
  * @param {Address} creator
@@ -1,4 +1,4 @@
1
1
  declare namespace _default {
2
- const deployment: number;
2
+ let deployment: number;
3
3
  }
4
4
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.4.82",
3
+ "version": "1.4.83",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": "./exports/node.js",