Skip to content

Commit

Permalink
feat(zerg): update to cosmwasm 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PoisonPhang committed May 7, 2024
1 parent 434ade8 commit 16de6a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zerg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ block-message = { workspace = true }
chain-utils = { workspace = true }
clap = { workspace = true, features = ["default", "derive", "env", "error-context"] }
contracts = { workspace = true }
cosmwasm-std = { workspace = true, features = ["stargate", "ibc3", "cosmwasm_1_3"] }
cosmwasm-std = { version = "2.0.0", features = ["stargate", "cosmwasm_1_3"] }
csv = "1.3.0"
ethers = { workspace = true, features = ["rustls", "ws"] }
futures = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion zerg/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ impl Context {

async fn send_from_eth(self, e: unionlabs::events::RecvPacket) {
let transfer =
Ucs01TransferPacket::try_from(cosmwasm_std::Binary(e.packet_data_hex.clone())).unwrap();
Ucs01TransferPacket::try_from(cosmwasm_std::Binary::new(e.packet_data_hex.clone()))
.unwrap();

let wallet = if let Some(wallet) = self
.ethereum_accounts
Expand Down
3 changes: 2 additions & 1 deletion zerg/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ impl Event {
finalization_timestamp: Option<u64>,
) -> Event {
let transfer =
Ucs01TransferPacket::try_from(cosmwasm_std::Binary(e.packet_data_hex.clone())).unwrap();
Ucs01TransferPacket::try_from(cosmwasm_std::Binary::new(e.packet_data_hex.clone()))
.unwrap();

let timed_event = TimedEvent::new(chain_id, execution_timestamp, finalization_timestamp);

Expand Down

0 comments on commit 16de6a2

Please sign in to comment.