forked from visoftsolutions/noir_rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Parse instance deployed event (AztecProtocol#4482)
Fixes the `e2e_deploy` test broken in master due to the changes to EthAddress deserialization introduced in AztecProtocol#4442.
- Loading branch information
1 parent
bbfa337
commit 62b171a
Showing
5 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
yarn-project/circuits.js/fixtures/ContractInstanceDeployedEventData.hex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0000000085864497636cf755ae7bde03f267ce01a520981c21c3682aaf82a631173b1e288f0f29f945ffa7b4ec2b69393e32b78501d0f193288e4a886a9f6e18000000000000000000000000000000000000000000000000000000000000000113554cdde23fee1efdb34bb3f685929e9098b8328083970984754948007e11ea0798434d6f2adf997c4fe3d14cb8468aa3cbf7a70d8c499c3c775fc8feff67960f68e30db11bc73392acfc02600ad1177cbe0d17cbbb5d3086a592b736f414a8000000000000000000000000507a47e77fc808e31716c47865eb372b2a487b7505331ff473c938df8b7a6dba01cf45bd6b029d4aeeff7e76953b31ef2510f7b80000000000000000000000000000000000000000000000000000000000000000 |
13 changes: 13 additions & 0 deletions
13
yarn-project/circuits.js/src/contract/contract_instance_deployed_event.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { getSampleContractInstanceDeployedEventPayload } from '../tests/fixtures.js'; | ||
import { ContractInstanceDeployedEvent } from './contract_instance_deployed_event.js'; | ||
|
||
describe('ContractInstanceDeployedEvent', () => { | ||
it('parses an event as emitted by the ClassInstanceDeployer', () => { | ||
const data = getSampleContractInstanceDeployedEventPayload(); | ||
const event = ContractInstanceDeployedEvent.fromLogData(data); | ||
expect(event.address.toString()).toEqual('0x173b1e288f0f29f945ffa7b4ec2b69393e32b78501d0f193288e4a886a9f6e18'); | ||
expect(event.contractClassId.toString()).toEqual( | ||
'0x0798434d6f2adf997c4fe3d14cb8468aa3cbf7a70d8c499c3c775fc8feff6796', | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters