Skip to content

Commit

Permalink
Merge pull request #1620 from aeternity/feature/channel-contract
Browse files Browse the repository at this point in the history
test(channel): get contract address on acknowledger side
  • Loading branch information
davidyuk authored Jul 22, 2022
2 parents 7dc70ee + 84ea803 commit 34c4a59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/integration/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import BigNumber from 'bignumber.js';
import { getSdk } from '.';
import {
generateKeyPair, unpackTx, buildTx, buildTxHash, encode, decode, TX_TYPE,
IllegalArgumentError, InsufficientBalanceError, ChannelConnectionError,
IllegalArgumentError, InsufficientBalanceError, ChannelConnectionError, encodeContractAddress,
} from '../../src';
import { pause } from '../../src/utils/other';
import Channel from '../../src/channel';
Expand Down Expand Up @@ -865,6 +865,9 @@ describe('Channel', () => {
}]),
}),
);
const { updates: [{ owner }] } = responderSign.lastCall.lastArg;
// TODO: extract this calculation https://github.com/aeternity/aepp-sdk-js/issues/1619
expect(encodeContractAddress(owner, roundBefore + 1)).to.equal(result.address);
contractAddress = result.address;
});

Expand Down

0 comments on commit 34c4a59

Please sign in to comment.