Skip to content

Commit 92f4fb3

Browse files
authored
Merge pull request #26 from burnt-labs/chore/upgrade-cw-std
upgrade cw-std for dlmalloc issue
2 parents e941658 + 8df5dc5 commit 92f4fb3

File tree

7 files changed

+34
-34
lines changed

7 files changed

+34
-34
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ overflow-checks = true # Disable integer overflow checks.
99

1010

1111
[workspace.dependencies]
12-
cosmwasm-schema = "=1.4.1"
13-
cosmwasm-std = { version = "=1.4.1", features = ["stargate"] }
14-
cw2 = "1.1.1"
15-
cw-storage-plus = "1.1.0"
16-
cw-utils = "1.0.2"
12+
cosmwasm-schema = "=1.5.5"
13+
cosmwasm-std = { version = "=1.5.5", features = ["stargate"] }
14+
cw2 = "1.1.2"
15+
cw-storage-plus = "1.2.0"
16+
cw-utils = "1.0.3"
1717
hex = "0.4"
1818
sha2 = { version = "0.10.8", features = ["oid"]}
1919
thiserror = "1"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
docker run --rm -v "$(pwd)":/code \
66
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
77
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
8-
cosmwasm/optimizer:0.15.1
8+
cosmwasm/optimizer:0.16.0
99
```

contracts/account/Cargo.toml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@ edition = "2021"
88
crate-type = ["cdylib", "rlib"]
99

1010
[dependencies]
11-
absacc = { git = "https://github.com/larry0x/abstract-account.git" }
12-
cosmwasm-schema = { workspace = true }
13-
cosmwasm-std = { workspace = true }
14-
cw2 = { workspace = true }
15-
cw-storage-plus = { workspace = true }
16-
sha2 = { workspace = true }
17-
thiserror = { workspace = true }
18-
serde = { workspace = true }
19-
serde_json = { workspace = true }
20-
tiny-keccak = { workspace = true }
21-
schemars = { workspace = true }
22-
hex = { workspace = true }
23-
ripemd = { workspace = true }
24-
bech32 = { workspace = true }
25-
base64 = { workspace = true }
26-
phf = { workspace = true }
27-
rsa = { workspace = true }
28-
getrandom = { workspace = true }
29-
p256 = { workspace = true }
30-
prost = { workspace = true }
11+
absacc = { git = "https://github.com/larry0x/abstract-account.git" }
12+
cosmwasm-schema = { workspace = true }
13+
cosmwasm-std = { workspace = true }
14+
cw2 = { workspace = true }
15+
cw-storage-plus = { workspace = true }
16+
sha2 = { workspace = true }
17+
thiserror = { workspace = true }
18+
serde = { workspace = true }
19+
serde_json = { workspace = true }
20+
tiny-keccak = { workspace = true }
21+
schemars = { workspace = true }
22+
hex = { workspace = true }
23+
ripemd = { workspace = true }
24+
bech32 = { workspace = true }
25+
base64 = { workspace = true }
26+
phf = { workspace = true }
27+
rsa = { workspace = true }
28+
getrandom = { workspace = true }
29+
p256 = { workspace = true }
30+
prost = { workspace = true }
3131
osmosis-std-derive = { workspace = true }

contracts/account/src/auth/jwt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub fn verify(
5555
components.next().ok_or(InvalidToken)?; // ignore the header, it is not currently used
5656
let payload_bytes = components.next().ok_or(InvalidToken)?;
5757
let payload = URL_SAFE_NO_PAD.decode(payload_bytes)?;
58-
let claims: Claims = cosmwasm_std::from_slice(payload.as_slice())?;
58+
let claims: Claims = cosmwasm_std::from_json(payload.as_slice())?;
5959

6060
// make sure the provided hash matches the one from the tx
6161
if tx_hash.eq(&claims.transaction_hash) {

contracts/account/src/contract.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use cosmwasm_std::{
2-
entry_point, to_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult,
2+
entry_point, to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult,
33
};
44

55
use absacc::AccountSudoMsg;
@@ -69,9 +69,9 @@ pub fn execute(
6969
#[entry_point]
7070
pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
7171
match msg {
72-
QueryMsg::AuthenticatorIDs {} => to_binary(&query::authenticator_ids(deps.storage)?),
72+
QueryMsg::AuthenticatorIDs {} => to_json_binary(&query::authenticator_ids(deps.storage)?),
7373
QueryMsg::AuthenticatorByID { id } => {
74-
to_binary(&query::authenticator_by_id(deps.storage, id)?)
74+
to_json_binary(&query::authenticator_by_id(deps.storage, id)?)
7575
}
7676
}
7777
}

contracts/account/src/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub fn authenticator_ids(store: &dyn Storage) -> StdResult<Vec<u8>> {
1212
pub fn authenticator_by_id(store: &dyn Storage, id: u8) -> StdResult<String> {
1313
let auth = AUTHENTICATORS.load(store, id)?;
1414

15-
match cosmwasm_std::to_binary(&auth) {
15+
match cosmwasm_std::to_json_binary(&auth) {
1616
Ok(auth_bz) => Ok(auth_bz.to_string()),
1717
Err(error) => Err(StdError::GenericErr {
1818
msg: error.to_string(),

contracts/treasury/src/contract.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::error::ContractResult;
22
use crate::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};
33
use crate::{execute, query, CONTRACT_NAME, CONTRACT_VERSION};
44
use cosmwasm_std::{
5-
entry_point, to_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult,
5+
entry_point, to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult,
66
};
77

88
#[entry_point]
@@ -43,11 +43,11 @@ pub fn execute(
4343
#[entry_point]
4444
pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
4545
match msg {
46-
QueryMsg::GrantConfigByTypeUrl { msg_type_url } => to_binary(
46+
QueryMsg::GrantConfigByTypeUrl { msg_type_url } => to_json_binary(
4747
&query::grant_config_by_type_url(deps.storage, msg_type_url)?,
4848
),
4949
QueryMsg::GrantConfigTypeUrls {} => {
50-
to_binary(&query::grant_config_type_urls(deps.storage)?)
50+
to_json_binary(&query::grant_config_type_urls(deps.storage)?)
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)