diff options
author | Remco Bloemen <remco@wicked.ventures> | 2018-06-14 17:49:17 +0800 |
---|---|---|
committer | Remco Bloemen <remco@wicked.ventures> | 2018-06-23 19:53:38 +0800 |
commit | 98840c9c5f078d42ea54585dda1645029772db11 (patch) | |
tree | b2cdce868fc1d00c533d396592609727f51eaff8 /packages/contracts/test | |
parent | 26cacfa247fcd07368d3a5bfb7a99aa0b47797ef (diff) | |
download | dexon-0x-contracts-98840c9c5f078d42ea54585dda1645029772db11.tar dexon-0x-contracts-98840c9c5f078d42ea54585dda1645029772db11.tar.gz dexon-0x-contracts-98840c9c5f078d42ea54585dda1645029772db11.tar.bz2 dexon-0x-contracts-98840c9c5f078d42ea54585dda1645029772db11.tar.lz dexon-0x-contracts-98840c9c5f078d42ea54585dda1645029772db11.tar.xz dexon-0x-contracts-98840c9c5f078d42ea54585dda1645029772db11.tar.zst dexon-0x-contracts-98840c9c5f078d42ea54585dda1645029772db11.zip |
Use provided mem in refernce memcpy
Diffstat (limited to 'packages/contracts/test')
-rw-r--r-- | packages/contracts/test/libraries/lib_mem.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/test/libraries/lib_mem.ts b/packages/contracts/test/libraries/lib_mem.ts index 00f7c4d8b..8cf5cf3a7 100644 --- a/packages/contracts/test/libraries/lib_mem.ts +++ b/packages/contracts/test/libraries/lib_mem.ts @@ -30,8 +30,8 @@ describe('LibMem', () => { const memHex = toHex(memory); // Reference implementation to test against - const refMemcpy = (_mem: Uint8Array, dest: number, source: number, length: number): Uint8Array => - Uint8Array.from(memory).copyWithin(dest, source, source + length); + const refMemcpy = (mem: Uint8Array, dest: number, source: number, length: number): Uint8Array => + Uint8Array.from(mem).copyWithin(dest, source, source + length); // Test vectors: destination, source, length, job description type Tests = Array<[number, number, number, string]>; |