Skip to content

Commit

Permalink
feature(compiler): Add compatibility with compiler 3.2.0 (#539)
Browse files Browse the repository at this point in the history
* feature(compiler): Point to compile 3.2.0. Add compatibility

* chore(Test): enable contract tests

* chore(Test): Fix contract tests

* chore(Test): Fix test
  • Loading branch information
nduchak authored Jul 15, 2019
1 parent 5b60bea commit 3542aac
Show file tree
Hide file tree
Showing 7 changed files with 2,378 additions and 845 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
TAG=v3.0.1
COMPILER_TAG=v3.1.0
COMPILER_TAG=v3.2.0
8 changes: 4 additions & 4 deletions es/utils/bytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import { BigNumber } from 'bignumber.js'
* @return the padded data
*/
export function leftPad (length, inputBuffer) {
let fill = length - inputBuffer.length
const fill = length - inputBuffer.length
if (fill > 0) {
let fillArray = new Uint8Array(fill)
const fillArray = new Uint8Array(fill)
fillArray.fill(0, fill)
return Buffer.concat([fillArray, inputBuffer])
} else {
Expand All @@ -46,9 +46,9 @@ export function leftPad (length, inputBuffer) {
* @return the padded data
*/
export function rightPad (length, inputBuffer) {
let fill = length - inputBuffer.length
const fill = length - inputBuffer.length
if (fill > 0) {
let fillArray = new Uint8Array(fill)
const fillArray = new Uint8Array(fill)
fillArray.fill(0, fill)
return Buffer.concat([inputBuffer, fillArray])
} else {
Expand Down
Loading

0 comments on commit 3542aac

Please sign in to comment.