aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-05 19:03:33 +0800
committerFabio Berger <me@fabioberger.com>2018-07-05 19:03:33 +0800
commita1fb438a8c8722d14c7a1e52e844898ff5451e66 (patch)
treef0374adf1f3e6d87df25032499f14ec7c231265c /packages
parent40d1b0a23cc8d58ce4c693e39038b1b61e3945b9 (diff)
downloaddexon-sol-tools-a1fb438a8c8722d14c7a1e52e844898ff5451e66.tar
dexon-sol-tools-a1fb438a8c8722d14c7a1e52e844898ff5451e66.tar.gz
dexon-sol-tools-a1fb438a8c8722d14c7a1e52e844898ff5451e66.tar.bz2
dexon-sol-tools-a1fb438a8c8722d14c7a1e52e844898ff5451e66.tar.lz
dexon-sol-tools-a1fb438a8c8722d14c7a1e52e844898ff5451e66.tar.xz
dexon-sol-tools-a1fb438a8c8722d14c7a1e52e844898ff5451e66.tar.zst
dexon-sol-tools-a1fb438a8c8722d14c7a1e52e844898ff5451e66.zip
Prettier fixes
Diffstat (limited to 'packages')
-rw-r--r--packages/assert/CHANGELOG.json5
-rw-r--r--packages/web3-wrapper/src/web3_wrapper.ts18
2 files changed, 18 insertions, 5 deletions
diff --git a/packages/assert/CHANGELOG.json b/packages/assert/CHANGELOG.json
index 26f3d0d66..b44cac4a1 100644
--- a/packages/assert/CHANGELOG.json
+++ b/packages/assert/CHANGELOG.json
@@ -3,8 +3,9 @@
"version": "0.2.13",
"changes": [
{
- "note": "Fix bug in string enum assertion. We erroneously were checking against the enum keys, not values",
- "pr": 821
+ "note":
+ "Fix bug in string enum assertion. We erroneously were checking against the enum keys, not values",
+ "pr": 821
}
]
},
diff --git a/packages/web3-wrapper/src/web3_wrapper.ts b/packages/web3-wrapper/src/web3_wrapper.ts
index c21d66d0b..495523e44 100644
--- a/packages/web3-wrapper/src/web3_wrapper.ts
+++ b/packages/web3-wrapper/src/web3_wrapper.ts
@@ -457,7 +457,11 @@ export class Web3Wrapper {
* @returns Estimated gas cost
*/
public async estimateGasAsync(txData: Partial<TxData>): Promise<number> {
- assert.doesConformToSchema('txData', txData, schemas.txDataSchema, [schemas.addressSchema, schemas.numberSchema, schemas.jsNumber]);
+ assert.doesConformToSchema('txData', txData, schemas.txDataSchema, [
+ schemas.addressSchema,
+ schemas.numberSchema,
+ schemas.jsNumber,
+ ]);
const txDataHex = marshaller.marshalTxData(txData);
const gasHex = await this._sendRawPayloadAsync<string>({ method: 'eth_estimateGas', params: [txDataHex] });
const gas = utils.convertHexToNumber(gasHex);
@@ -470,7 +474,11 @@ export class Web3Wrapper {
* @returns The raw call result
*/
public async callAsync(callData: CallData, defaultBlock?: BlockParam): Promise<string> {
- assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [schemas.addressSchema, schemas.numberSchema, schemas.jsNumber]);
+ assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [
+ schemas.addressSchema,
+ schemas.numberSchema,
+ schemas.jsNumber,
+ ]);
if (!_.isUndefined(defaultBlock)) {
Web3Wrapper._assertBlockParam(defaultBlock);
}
@@ -491,7 +499,11 @@ export class Web3Wrapper {
* @returns Transaction hash
*/
public async sendTransactionAsync(txData: TxData): Promise<string> {
- assert.doesConformToSchema('txData', txData, schemas.txDataSchema, [schemas.addressSchema, schemas.numberSchema, schemas.jsNumber]);
+ assert.doesConformToSchema('txData', txData, schemas.txDataSchema, [
+ schemas.addressSchema,
+ schemas.numberSchema,
+ schemas.jsNumber,
+ ]);
const txDataHex = marshaller.marshalTxData(txData);
const txHash = await this._sendRawPayloadAsync<string>({ method: 'eth_sendTransaction', params: [txDataHex] });
return txHash;