Skip to content

Commit

Permalink
Tests: Make explicit string concats for BigNumber obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai committed Mar 26, 2018
1 parent 053fb10 commit c7f08a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/kernel_acl.js
Expand Up @@ -100,7 +100,7 @@ contract('Kernel ACL', accounts => {
const argId = '0x00' // arg 0
const op = '02' // not equal
const value = '000000000000000000000000000000000000000000000000000000000000' // namespace 0
const param = new web3.BigNumber(argId + op + value)
const param = new web3.BigNumber(`${argId}${op}${value}`)

const r1 = await acl.grantPermissionP(accounts[3], app, role, [param], { from: granted })
// grants again without re-saving params
Expand Down
2 changes: 1 addition & 1 deletion test/kernel_apps.js
Expand Up @@ -165,7 +165,7 @@ contract('Kernel apps', accounts => {
const argId = '0x00' // arg 0
const op = '03' // greater than
const value = '000000000000000000000000000000000000000000000000000000000005' // 5
const param = new web3.BigNumber(argId + op + value)
const param = new web3.BigNumber(`${argId}${op}${value}`)

await acl.grantPermissionP(accounts[2], appProxy.address, r2, [param], { from: permissionsRoot })
})
Expand Down

0 comments on commit c7f08a6

Please sign in to comment.