Skip to content

Commit

Permalink
fix(Contract): Fix compiler test's
Browse files Browse the repository at this point in the history
  • Loading branch information
nduchak committed Apr 14, 2020
1 parent 3f77138 commit b748003
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/cli/contract.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const testContract = `contract Identity =
`

const encodedNumber3 = 'cb_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPJ9AW0'
const CALL_DATA = 'cb_KxG4F37sGwIZEGMb'
const DECODED_CALL_DATA = { arguments: [{ type: 'int', value: 1 }], function: 'main' }
const CALL_DATA = 'cb_KxG4F37sKwIEFmEjaA=='
const DECODED_CALL_DATA = { arguments: [{ type: 'int', value: 1 }, { type: 'int', value: 2 }], function: 'main' }

plan(1000000000)

Expand Down Expand Up @@ -66,7 +66,7 @@ describe('CLI Contract Module', function () {
})

it('Encode callData', async () => {
const { callData } = JSON.parse(await exec(['contract', 'encodeData', contractFile, 'main', 1, '--json']))
const { callData } = JSON.parse(await exec(['contract', 'encodeData', contractFile, 'main', '1', '2', '--json']))
callData.should.be.equal(CALL_DATA)
})

Expand Down
6 changes: 3 additions & 3 deletions test/cli/inspect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ describe('CLI Inspect Module', function () {
wallet = await ready(this)
})
it('Inspect Account', async () => {
const balance = await wallet.balance(KEY_PAIR.publicKey, { format: false })
const balance = await wallet.balance(KEY_PAIR.publicKey)
const { balance: cliBalance } = JSON.parse(await execute(['inspect', KEY_PAIR.publicKey, '--json']))

balance.should.equal(cliBalance)
const isEqual = `${balance}` === `${cliBalance}`
isEqual.should.equal(true)
})
it('Inspect Transaction', async () => {
const recipient = (generateKeyPair()).publicKey
Expand Down

0 comments on commit b748003

Please sign in to comment.