Skip to content

Commit

Permalink
fix: specify global types
Browse files Browse the repository at this point in the history
  • Loading branch information
olehmisar committed Dec 2, 2024
1 parent 24b6456 commit 2cdbdb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Put this into your Nargo.toml.
If you are using Noir:

```toml
nodash = { git = "https://github.com/olehmisar/nodash/", tag = "v0.39.0" }
nodash = { git = "https://github.com/olehmisar/nodash/", tag = "v0.39.2" }
```

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., nodash@v0.39.0 and nodash@v0.39.1 are compatible with noir@v0.39.0.
Expand Down
2 changes: 1 addition & 1 deletion src/solidity.nr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
global SELECTOR_LENGTH = 4;
global SELECTOR_LENGTH: u32 = 4;

pub fn encode_with_selector<let N: u32>(
selector: u32,
Expand Down
2 changes: 1 addition & 1 deletion src/string.nr
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub fn to_hex_string_bytes(value: Field) -> [u8; 64] {
result
}

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

Expand Down

0 comments on commit 2cdbdb2

Please sign in to comment.