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 (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko authored Mar 19, 2024
1 parent bd5e3f5 commit 642203c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
workflow_file_name: topos:integration-tests.yml
ref: main
wait_interval: 60
client_payload: '{ "topos-docker-tag": "${{ env.docker_tag }}", "topos-smart-contracts-docker-tag": "3.2.0" }'
client_payload: '{ "topos-docker-tag": "${{ env.docker_tag }}", "topos-smart-contracts-docker-tag": "main" }'

frontend-erc20-e2e:
runs-on: ubuntu-latest
Expand All @@ -59,4 +59,4 @@ jobs:
workflow_file_name: frontend:erc20-messaging.yml
ref: main
wait_interval: 60
client_payload: '{ "topos-docker-tag": "${{ env.docker_tag }}", "topos-smart-contracts-docker-tag": "3.2.0" }'
client_payload: '{ "topos-docker-tag": "${{ env.docker_tag }}", "topos-smart-contracts-docker-tag": "main" }'
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
8 changes: 5 additions & 3 deletions crates/topos-sequencer-subnet-client/src/subnet_contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use tracing::info;

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

pub(crate) fn create_topos_core_contract_from_json<T: Middleware>(
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 642203c

Please sign in to comment.