Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: revert update smart contract event (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko authored Feb 29, 2024
1 parent f995859 commit c41a51a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 1 addition & 5 deletions crates/topos-sequencer-subnet-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ pub type Hash = String;
/// Event collected from the sending subnet
#[derive(Debug, Clone, Serialize, Deserialize)]
pub enum SubnetEvent {
CrossSubnetMessageSent {
target_subnet_id: SubnetId,
source_subnet_id: SubnetId,
nonce: u64,
},
CrossSubnetMessageSent { target_subnet_id: SubnetId },
}

#[derive(Default, Debug, Clone, Serialize, Deserialize)]
Expand Down
6 changes: 2 additions & 4 deletions crates/topos-sequencer-subnet-client/src/subnet_contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use tracing::info;

abigen!(
IToposCore,
"npm:@topos-protocol/topos-smart-contracts@latest/artifacts/contracts/interfaces/IToposCore.\
"npm:@topos-protocol/topos-smart-contracts@3.2.0/artifacts/contracts/interfaces/IToposCore.\
sol/IToposCore.json"
);

Expand Down Expand Up @@ -60,11 +60,9 @@ pub(crate) async fn get_block_events(
);
result.push(SubnetEvent::CrossSubnetMessageSent {
target_subnet_id: f.target_subnet_id.into(),
source_subnet_id: f.source_subnet_id.into(),
nonce: f.nonce.as_u64(),
})
} else {
// Ignored other events until we need them
// Ignored for now other events Upgraded, CertStored
}
}

Expand Down

0 comments on commit c41a51a

Please sign in to comment.