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

Commit

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

#[derive(Default, Debug, Clone, Serialize, Deserialize)]
Expand Down
6 changes: 4 additions & 2 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@3.2.0/artifacts/contracts/interfaces/IToposCore.\
"npm:@topos-protocol/topos-smart-contracts@3.3.0/artifacts/contracts/interfaces/IToposCore.\
sol/IToposCore.json"
);

Expand Down Expand Up @@ -60,9 +60,11 @@ 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 for now other events Upgraded, CertStored
// Ignored other events until we need them
}
}

Expand Down

0 comments on commit 08230ab

Please sign in to comment.