Skip to content

Commit 6f441a9

Browse files
authored
re-enable ObservableStores and GcUnsafe2 warnings (#177)
1 parent 523fa0d commit 6f441a9

File tree

5 files changed

+8
-15
lines changed

5 files changed

+8
-15
lines changed

nim.cfg

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
# nim-web3
2-
# Copyright (c) 2019-2023 Status Research & Development GmbH
2+
# Copyright (c) 2019-2024 Status Research & Development GmbH
33
# Licensed under either of
44
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
55
# * MIT license ([LICENSE-MIT](LICENSE-MIT))
66
# at your option.
77
# This file may not be copied, modified, or distributed except according to
88
# those terms.
99

10-
# nim.cfg
11-
@if nimHasWarningObservableStores:
12-
warning[ObservableStores]: off
13-
@end
14-
1510
# Avoid some rare stack corruption while using exceptions with a SEH-enabled
1611
# toolchain: https://github.com/status-im/nimbus-eth2/issues/3121
1712
@if windows and not vcc:

tests/test_contract_dsl.nim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ import
1616
type
1717
DummySender = object
1818

19-
proc createMutableContractInvocation(s: DummySender, t: typedesc, data: seq[byte]): seq[byte] = data
20-
proc createImmutableContractInvocation(s: DummySender, t: typedesc, data: seq[byte]): seq[byte] = data
21-
proc createContractDeployment(s: DummySender, t: typedesc, data: seq[byte]): seq[byte] = data
19+
func createMutableContractInvocation(s: DummySender, t: typedesc, data: seq[byte]): seq[byte] = data
20+
func createContractDeployment(s: DummySender, t: typedesc, data: seq[byte]): seq[byte] = data
2221

23-
proc instantiateContract(t: typedesc): ContractInstance[t, DummySender] =
22+
func instantiateContract(t: typedesc): ContractInstance[t, DummySender] =
2423
discard
2524

2625
proc checkData(a: seq[byte], expectedData: string) =

tests/test_logs.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# those terms.
99

1010
import
11-
std/[json, random],
11+
std/random,
1212
pkg/unittest2,
1313
../web3,
1414
chronos, stint,

web3.nimble

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ proc test(args, path: string) =
3434

3535
exec "nim " & getEnv("TEST_LANG", "c") & " " & getEnv("NIMFLAGS") & " " & args &
3636
" --outdir:build -r --skipParentCfg" &
37-
" --warning[ObservableStores]:off --warning[GcUnsafe2]:off" &
3837
" --styleCheck:usages --styleCheck:error" &
39-
" --hint[XDeclaredButNotUsed]:off --hint[Processing]:off " &
38+
" --hint[Processing]:off " &
4039
path
4140

4241

web3/confutils_defs.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# nim-web3
2-
# Copyright (c) 2023 Status Research & Development GmbH
2+
# Copyright (c) 2023-2024 Status Research & Development GmbH
33
# Licensed under either of
44
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
55
# * MIT license ([LICENSE-MIT](LICENSE-MIT))
@@ -16,7 +16,7 @@ export primitives
1616

1717
func parseCmdArg*(T: type Address, input: string): T
1818
{.raises: [ValueError].} =
19-
fromHex(T, string input)
19+
fromHex(T, input)
2020

2121
func completeCmdArg*(T: type Address, input: string): seq[string] =
2222
@[]

0 commit comments

Comments
 (0)