Skip to content

Commit

Permalink
test(contracts): update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
1cedrus committed Jun 26, 2024
1 parent e05b4cd commit 9011ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contracts/src/__tests__/Contract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ describe('Contract', () => {

it('should decode properly', () => {
const contractEmittedEventRecord =
'0x00010000000803f2773dba008bbe3bb76fa8cb89fddb534b4e81dcaf52faaf94190a89ab3d3b04080001040a39b5ca0b8b3a5172476100ae7b9168b269cc91d5648efe180c75d935d3e886';
'0x00010000000803c9ea3bd36943af3e70dfbdefe0a7ac6af85f912260c15074917071183e9732570c0000010400466c69707065723a3a466c6970706564000000000000000000000000000000';
const eventRecord = api.registry.findCodec(19).tryDecode(contractEmittedEventRecord) as FrameSystemEventRecord;

const decodedEvent = flipper.decodeEvent(eventRecord);

expect(decodedEvent).toEqual({ name: 'Flipped', data: { old: true, new: false } });
expect(decodedEvent).toEqual({ name: 'Flipped', data: { old: false, new: true } });
});
});
});
Expand Down

0 comments on commit 9011ea3

Please sign in to comment.