File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ and this project adheres to
1010
1111- cosmwasm-std: Implement ` Mul ` and ` MulAssign ` for ` Uint128 ` .
1212- cosmwasm-std: Implement ` FromStr ` for ` Uint128 ` , ` Uint256 ` , and ` Uint512 ` .
13- - cosmwasm-std: Make ` Uint256::from_le_bytes ` and ` ::from_be_bytes ` const.
13+ - cosmwasm-std: Make ` Uint256::from_le_bytes ` , ` ::from_be_bytes ` and ` ::new `
14+ const.
1415
1516### Changed
1617
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ impl Uint256 {
5252
5353 /// Creates a Uint256(value) from a big endian representation. It's just an alias for
5454 /// `from_big_endian`.
55- pub fn new ( value : [ u8 ; 32 ] ) -> Self {
55+ pub const fn new ( value : [ u8 ; 32 ] ) -> Self {
5656 Self :: from_be_bytes ( value)
5757 }
5858
You can’t perform that action at this time.
0 commit comments