Skip to content

Commit

Permalink
bump rust to 1.78
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Jul 8, 2024
1 parent 039d33c commit 28babcd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ compile:
--mount type=volume,source="$(notdir $(CURDIR))_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
--platform linux/amd64 \
cosmwasm/workspace-optimizer:0.15.0
cosmwasm/workspace-optimizer:0.16.0

check_contracts:
@cargo install cosmwasm-check
Expand All @@ -30,4 +30,4 @@ check_contracts:
build: schema clippy test fmt doc compile check_contracts

build-proto:
@cargo run --bin proto-build $(revision)
@cargo run --bin proto-build $(revision)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ We provide sample contracts that either implement or consume these specification

### Environment Setup

- Rust v1.73.0+
- Rust v1.78.0+
- `wasm32-unknown-unknown` target
- Docker

Expand Down
6 changes: 2 additions & 4 deletions contracts/neutron_interchain_txs/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ fn execute_delegate(
amount: amount.to_string(),
}),
};
let mut buf = Vec::new();
buf.reserve(delegate_msg.encoded_len());
let mut buf = Vec::with_capacity(delegate_msg.encoded_len());

if let Err(e) = delegate_msg.encode(&mut buf) {
return Err(NeutronError::Std(StdError::generic_err(format!(
Expand Down Expand Up @@ -290,8 +289,7 @@ fn execute_undelegate(
amount: amount.to_string(),
}),
};
let mut buf = Vec::new();
buf.reserve(delegate_msg.encoded_len());
let mut buf = Vec::with_capacity(delegate_msg.encoded_len());

if let Err(e) = delegate_msg.encode(&mut buf) {
return Err(NeutronError::Std(StdError::generic_err(format!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ fn test_bank_total_supply_reconstruct() {
let s = StorageValue {
storage_prefix: "".to_string(),
key: Binary::new(denom_key),
value: Binary::new(case.amount.as_str().as_bytes().to_vec()),
value: Binary::new(case.amount.as_bytes().to_vec()),
};
st_values.push(s);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ fn test_bank_total_supply_reconstruct() {
let s = StorageValue {
storage_prefix: "".to_string(),
key: Binary::new(denom_key),
value: Binary::new(case.amount.as_str().as_bytes().to_vec()),
value: Binary::new(case.amount.as_bytes().to_vec()),
};
st_values.push(s);
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.73.0"
channel = "1.78.0"

0 comments on commit 28babcd

Please sign in to comment.