Skip to content

Commit 2cdbdb2

Browse files
committed
fix: specify global types
1 parent 24b6456 commit 2cdbdb2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Put this into your Nargo.toml.
99
If you are using Noir:
1010

1111
```toml
12-
nodash = { git = "https://github.com/olehmisar/nodash/", tag = "v0.39.0" }
12+
nodash = { git = "https://github.com/olehmisar/nodash/", tag = "v0.39.2" }
1313
```
1414

1515
The version of nodash matches the version of Noir. The patch version may be different if a bugfix or a new feature is added for the same version of Noir. E.g., [email protected] and [email protected] are compatible with [email protected].

src/solidity.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
global SELECTOR_LENGTH = 4;
1+
global SELECTOR_LENGTH: u32 = 4;
22

33
pub fn encode_with_selector<let N: u32>(
44
selector: u32,

src/string.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub fn to_hex_string_bytes(value: Field) -> [u8; 64] {
1010
result
1111
}
1212

13-
global U64_STR_LEN = 20;
13+
global U64_STR_LEN: u32 = 20;
1414
pub fn str_to_u64(arr: impl Into<[u8; U64_STR_LEN]>) -> u64 {
1515
let arr = arr.into();
1616

0 commit comments

Comments
 (0)