aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-11-20 03:47:32 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-11-29 08:38:10 +0800
commit666075a87e8f7dfd5ef3553c5f8e08d826ac0641 (patch)
treec69d89488ec58c6726cf7ae498b83b6f1ef8f9d4 /packages/utils/src
parentb28f26916fc51fa13308f335e3cd0bd5d3b075fc (diff)
downloaddexon-sol-tools-666075a87e8f7dfd5ef3553c5f8e08d826ac0641.tar
dexon-sol-tools-666075a87e8f7dfd5ef3553c5f8e08d826ac0641.tar.gz
dexon-sol-tools-666075a87e8f7dfd5ef3553c5f8e08d826ac0641.tar.bz2
dexon-sol-tools-666075a87e8f7dfd5ef3553c5f8e08d826ac0641.tar.lz
dexon-sol-tools-666075a87e8f7dfd5ef3553c5f8e08d826ac0641.tar.xz
dexon-sol-tools-666075a87e8f7dfd5ef3553c5f8e08d826ac0641.tar.zst
dexon-sol-tools-666075a87e8f7dfd5ef3553c5f8e08d826ac0641.zip
Tests for Integer (tested 256 / 32 bit integers)
Diffstat (limited to 'packages/utils/src')
-rw-r--r--packages/utils/src/abi_encoder/evm_data_types.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/utils/src/abi_encoder/evm_data_types.ts b/packages/utils/src/abi_encoder/evm_data_types.ts
index 1ee95863b..38878f63e 100644
--- a/packages/utils/src/abi_encoder/evm_data_types.ts
+++ b/packages/utils/src/abi_encoder/evm_data_types.ts
@@ -118,9 +118,9 @@ abstract class Number extends PayloadDataType {
public encodeValue(value_: BigNumber | string | number): Buffer {
const value = new BigNumber(value_, 10);
if (value.greaterThan(this.getMaxValue())) {
- throw `tried to assign value of ${value}, which exceeds max value of ${this.getMaxValue()}`;
+ throw `Tried to assign value of ${value}, which exceeds max value of ${this.getMaxValue()}`;
} else if (value.lessThan(this.getMinValue())) {
- throw `tried to assign value of ${value}, which exceeds min value of ${this.getMinValue()}`;
+ throw `Tried to assign value of ${value}, which exceeds min value of ${this.getMinValue()}`;
}
const hexBase = 16;