diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-12-24 12:50:02 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2019-01-15 02:49:44 +0800 |
commit | 86caa4a0bb82e3ba7d362cca9b75565bf8944952 (patch) | |
tree | 1cddd589130d6844dcb6824d1b4bcf588a8719b5 /packages/utils/test/abi_encoder/methods_test.ts | |
parent | 6d832deb62cdef38c5fa69169986ef00dbc6e1eb (diff) | |
download | dexon-sol-tools-86caa4a0bb82e3ba7d362cca9b75565bf8944952.tar dexon-sol-tools-86caa4a0bb82e3ba7d362cca9b75565bf8944952.tar.gz dexon-sol-tools-86caa4a0bb82e3ba7d362cca9b75565bf8944952.tar.bz2 dexon-sol-tools-86caa4a0bb82e3ba7d362cca9b75565bf8944952.tar.lz dexon-sol-tools-86caa4a0bb82e3ba7d362cca9b75565bf8944952.tar.xz dexon-sol-tools-86caa4a0bb82e3ba7d362cca9b75565bf8944952.tar.zst dexon-sol-tools-86caa4a0bb82e3ba7d362cca9b75565bf8944952.zip |
Ran prettier and linter
Diffstat (limited to 'packages/utils/test/abi_encoder/methods_test.ts')
-rw-r--r-- | packages/utils/test/abi_encoder/methods_test.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/utils/test/abi_encoder/methods_test.ts b/packages/utils/test/abi_encoder/methods_test.ts index 472212e3c..920cb1799 100644 --- a/packages/utils/test/abi_encoder/methods_test.ts +++ b/packages/utils/test/abi_encoder/methods_test.ts @@ -199,7 +199,9 @@ describe('ABI Encoder: Method Encoding / Decoding', () => { it('Unfixed Length Array / Static Members ABI', async () => { // Generate calldata const method = new AbiEncoder.Method(AbiSamples.dynamicArrayStaticMembersAbi); + // tslint:disable custom-no-magic-numbers const args = [[127, 14, 54]]; + // tslint:enable custom-no-magic-numbers const calldata = method.encode(args, encodingRules); // Validate calldata const expectedCalldata = @@ -213,7 +215,9 @@ describe('ABI Encoder: Method Encoding / Decoding', () => { it('Fixed Length Array / Static Members ABI', async () => { // Generate calldata const method = new AbiEncoder.Method(AbiSamples.staticArrayAbi); + // tslint:disable custom-no-magic-numbers const args = [[127, 14, 54]]; + // tslint:enable custom-no-magic-numbers const calldata = method.encode(args, encodingRules); // Validate calldata const expectedCalldata = @@ -310,7 +314,9 @@ describe('ABI Encoder: Method Encoding / Decoding', () => { it('Large, Nested ABI', async () => { // Construct Calldata const method = new AbiEncoder.Method(AbiSamples.largeNestedAbi); + // tslint:disable custom-no-magic-numbers const someStaticArray = [127, 14, 54]; + // tslint:enable custom-no-magic-numbers const someStaticArrayWithDynamicMembers = [ 'the little piping piper piped a piping pipper papper', 'the kid knows how to write poems, what can I say -- I guess theres a lot I could say to try to fill this line with a lot of text.', |