Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 28, 2025
1 parent 517a13c commit 7483bca
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ contract ContractInstanceDeployer {
// kind: 'point'
// }

impl Serialize<15> for ContractInstanceDeployed {
fn serialize(self) -> [Field; 15] {
impl ContractInstanceDeployed {
fn serialize_non_standard(self) -> [Field; 15] {
[
self.DEPLOYER_CONTRACT_INSTANCE_DEPLOYED_MAGIC_VALUE,
self.address.to_field(),
Expand Down Expand Up @@ -117,10 +117,7 @@ contract ContractInstanceDeployer {
version: 1,
};

// This is a hack to get around there being two implementations of `Serialize`.
// Can be replaced with the below once fixed
// let payload = event.serialize();
let payload = Serialize::<15>::serialize(event);
let payload = event.serialize_non_standard();
dep::aztec::oracle::debug_log::debug_log_format("ContractInstanceDeployed: {}", payload);

let padded_log = array_concat(payload, [0; 3]);
Expand Down

0 comments on commit 7483bca

Please sign in to comment.