Skip to content

Commit ac9a1e2

Browse files
authored
Merge pull request #851 from CosmWasm/reenable-field_reassign_with_default
Re-enable field_reassign_with_default
2 parents e02f03d + 3eb79ac commit ac9a1e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+483
-262
lines changed

Cargo.lock

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MIGRATING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ major releases of `cosmwasm`. Note that you can also view the
99
- The minimum Rust supported version for 0.14 is 1.50.0. Verify your Rust
1010
version is >= 1.50.0 with: `rustc --version`
1111

12-
- Update CosmWasm dependencies in Cargo.toml (skip the ones you don't use):
12+
- Update CosmWasm and schemars dependencies in Cargo.toml (skip the ones you
13+
don't use):
1314

1415
```
1516
[dependencies]
1617
cosmwasm-std = "0.14.0"
1718
cosmwasm-storage = "0.14.0"
19+
schemars = "0.8.1"
1820
# ...
1921
2022
[dev-dependencies]

contracts/burner/Cargo.lock

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/burner/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ backtraces = ["cosmwasm-std/backtraces", "cosmwasm-vm/backtraces"]
3232

3333
[dependencies]
3434
cosmwasm-std = { path = "../../packages/std", features = ["iterator"] }
35-
schemars = "0.7"
35+
schemars = "0.8.1"
3636
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
3737

3838
[dev-dependencies]

contracts/burner/src/msg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(clippy::field_reassign_with_default)] // see https://github.com/CosmWasm/cosmwasm/issues/685
2-
31
use schemars::JsonSchema;
42
use serde::{Deserialize, Serialize};
53

contracts/crypto-verify/Cargo.lock

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/crypto-verify/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cosmwasm-std = { path = "../../packages/std", features = ["iterator"] }
3636
cosmwasm-storage = { path = "../../packages/storage", features = ["iterator"] }
3737
hex = "0.4"
3838
rlp = "0.5"
39-
schemars = "0.7"
39+
schemars = "0.8.1"
4040
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
4141
sha2 = "0.9"
4242
sha3 = "0.9"

contracts/crypto-verify/schema/query_msg.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
}
4444
}
4545
}
46-
}
46+
},
47+
"additionalProperties": false
4748
},
4849
{
4950
"description": "Ethereum text verification (compatible to the eth_sign RPC/web3 enpoint). This cannot be used to verify transaction.\n\nSee https://web3js.readthedocs.io/en/v1.2.0/web3-eth.html#sign",
@@ -78,7 +79,8 @@
7879
}
7980
}
8081
}
81-
}
82+
},
83+
"additionalProperties": false
8284
},
8385
{
8486
"type": "object",
@@ -145,7 +147,8 @@
145147
}
146148
}
147149
}
148-
}
150+
},
151+
"additionalProperties": false
149152
},
150153
{
151154
"description": "Tendermint format (ed25519 verification scheme).",
@@ -188,7 +191,8 @@
188191
}
189192
}
190193
}
191-
}
194+
},
195+
"additionalProperties": false
192196
},
193197
{
194198
"description": "Tendermint format (batch ed25519 verification scheme).",
@@ -228,7 +232,8 @@
228232
}
229233
}
230234
}
231-
}
235+
},
236+
"additionalProperties": false
232237
},
233238
{
234239
"description": "Returns a list of supported verification schemes. No pagination - this is a short list.",
@@ -240,7 +245,8 @@
240245
"list_verification_schemes": {
241246
"type": "object"
242247
}
243-
}
248+
},
249+
"additionalProperties": false
244250
}
245251
],
246252
"definitions": {

contracts/crypto-verify/src/msg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(clippy::field_reassign_with_default)] // see https://github.com/CosmWasm/cosmwasm/issues/685
2-
31
use cosmwasm_std::{Binary, Deps, Uint128};
42
use schemars::JsonSchema;
53
use serde::{Deserialize, Serialize};

contracts/hackatom/Cargo.lock

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)