diff --git a/nim.cfg b/nim.cfg index c0e6d2a..65f4901 100644 --- a/nim.cfg +++ b/nim.cfg @@ -1,5 +1,5 @@ # nim-web3 -# Copyright (c) 2019-2023 Status Research & Development GmbH +# Copyright (c) 2019-2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) @@ -7,11 +7,6 @@ # This file may not be copied, modified, or distributed except according to # those terms. -# nim.cfg -@if nimHasWarningObservableStores: - warning[ObservableStores]: off -@end - # Avoid some rare stack corruption while using exceptions with a SEH-enabled # toolchain: https://github.com/status-im/nimbus-eth2/issues/3121 @if windows and not vcc: diff --git a/tests/test_contract_dsl.nim b/tests/test_contract_dsl.nim index 7d678b7..72c179a 100644 --- a/tests/test_contract_dsl.nim +++ b/tests/test_contract_dsl.nim @@ -16,11 +16,10 @@ import type DummySender = object -proc createMutableContractInvocation(s: DummySender, t: typedesc, data: seq[byte]): seq[byte] = data -proc createImmutableContractInvocation(s: DummySender, t: typedesc, data: seq[byte]): seq[byte] = data -proc createContractDeployment(s: DummySender, t: typedesc, data: seq[byte]): seq[byte] = data +func createMutableContractInvocation(s: DummySender, t: typedesc, data: seq[byte]): seq[byte] = data +func createContractDeployment(s: DummySender, t: typedesc, data: seq[byte]): seq[byte] = data -proc instantiateContract(t: typedesc): ContractInstance[t, DummySender] = +func instantiateContract(t: typedesc): ContractInstance[t, DummySender] = discard proc checkData(a: seq[byte], expectedData: string) = diff --git a/tests/test_logs.nim b/tests/test_logs.nim index fb1262f..96cdfb1 100644 --- a/tests/test_logs.nim +++ b/tests/test_logs.nim @@ -8,7 +8,7 @@ # those terms. import - std/[json, random], + std/random, pkg/unittest2, ../web3, chronos, stint, diff --git a/web3.nimble b/web3.nimble index 8526384..32047b6 100644 --- a/web3.nimble +++ b/web3.nimble @@ -34,9 +34,8 @@ proc test(args, path: string) = exec "nim " & getEnv("TEST_LANG", "c") & " " & getEnv("NIMFLAGS") & " " & args & " --outdir:build -r --skipParentCfg" & - " --warning[ObservableStores]:off --warning[GcUnsafe2]:off" & " --styleCheck:usages --styleCheck:error" & - " --hint[XDeclaredButNotUsed]:off --hint[Processing]:off " & + " --hint[Processing]:off " & path diff --git a/web3/confutils_defs.nim b/web3/confutils_defs.nim index 39369a4..a903079 100644 --- a/web3/confutils_defs.nim +++ b/web3/confutils_defs.nim @@ -1,5 +1,5 @@ # nim-web3 -# Copyright (c) 2023 Status Research & Development GmbH +# Copyright (c) 2023-2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) @@ -16,7 +16,7 @@ export primitives func parseCmdArg*(T: type Address, input: string): T {.raises: [ValueError].} = - fromHex(T, string input) + fromHex(T, input) func completeCmdArg*(T: type Address, input: string): seq[string] = @[]