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

fix: bump smart contract version #477

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading