Skip to content

Commit ae782f0

Browse files
committed
make vault contract compilable
1 parent e77c9b3 commit ae782f0

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.github/workflows/basic.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
uses: actions-rs/toolchain@v1
6464
with:
6565
profile: minimal
66-
toolchain: 1.70.0
66+
toolchain: 1.85.0
6767
override: true
6868
components: rustfmt, clippy
6969

contracts/provider/vault/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ mt = ["library", "sylvia/mt"]
2020
mesh-apis = { workspace = true }
2121
mesh-sync = { workspace = true }
2222
mesh-bindings = { workspace = true }
23-
mesh-native-staking = { workspace = true }
2423

2524
sylvia = { workspace = true }
2625
cosmwasm-schema = { workspace = true }

contracts/provider/vault/src/contract.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,16 @@ impl VaultContract {
259259
false,
260260
)?;
261261

262+
263+
/// The message that is binary encoded in `receive_stake(..msg)`
264+
#[cosmwasm_schema::cw_serde]
265+
struct StakeMsg {
266+
pub validator: String,
267+
}
268+
262269
let stake_msg = local_staking.contract.receive_stake(
263270
ctx.info.sender.to_string(),
264-
to_json_binary(&mesh_native_staking::msg::StakeMsg { validator }).unwrap(),
271+
to_json_binary(&StakeMsg { validator }).unwrap(),
265272
vec![amount],
266273
)?;
267274

scripts/optimizer.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -x
44

55
U="cosmwasm"
6-
V="0.15.0"
6+
V="0.16.1"
77

88
M=$(uname -m)
99
#M="x86_64" # Force Intel arch

0 commit comments

Comments
 (0)