Skip to content

Commit 04813b8

Browse files
committed
fixed easy_addr
1 parent 52cc8e8 commit 04813b8

File tree

6 files changed

+8
-12
lines changed

6 files changed

+8
-12
lines changed

Cargo.lock

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/cosmwasm-smart-contracts/easy_addr/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name = "easy-addr"
33
version = "0.1.0"
44
edition = "2021"
55
publish = false
6+
license.workspace = true
67

78
[lib]
89
proc-macro = true
910

1011
[dependencies]
1112
cosmwasm-std = { workspace = true }
12-
proc-macro2 = "1"
13-
quote = "1"
14-
syn = { version = "1.0.6", features = ["full", "printing", "extra-traits"] }
13+
quote = { workspace = true }
14+
syn = { workspace = true, features = ["full", "printing", "extra-traits"] }
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use cosmwasm_std::testing::mock_dependencies;
1+
use cosmwasm_std::testing::MockApi;
22

33
use proc_macro::TokenStream;
44
use quote::quote;
@@ -7,9 +7,6 @@ use syn::parse_macro_input;
77
#[proc_macro]
88
pub fn addr(input: TokenStream) -> TokenStream {
99
let input = parse_macro_input!(input as syn::LitStr).value();
10-
let addr = mock_dependencies()
11-
.api
12-
.addr_make(input.as_str())
13-
.to_string();
10+
let addr = MockApi::default().addr_make(input.as_str()).to_string();
1411
TokenStream::from(quote! {#addr})
1512
}

contracts/Cargo.lock

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/mixnet/src/support/tests/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ pub mod test_helpers {
215215
// every epoch there's a 3% chance of somebody bonding a node
216216
let bonding_weights = [3, 97];
217217

218-
// and 15% of making a delegation
219-
let delegation_weights = [15, 85];
218+
// and 14% of making a delegation
219+
let delegation_weights = [14, 85];
220220

221221
// and 1% of making a VESTED delegation
222222
let vested_delegation_weights = [1, 99];

contracts/multisig/cw3-flex-multisig/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ documentation = "https://docs.cosmwasm.com"
1111

1212
[[bin]]
1313
name = "schema"
14+
required-features = ["cosmwasm-schema"]
1415

1516
[lib]
1617
crate-type = ["cdylib", "rlib"]

0 commit comments

Comments
 (0)