@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
|
|
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
|
|
|
@@ -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<
|
|
13
|
+
createContractMessage(creator: Address, contract: string, constructorParameters?: any[]): Promise<any>;
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @param {Address} creator
|