re-enable ObservableStores and GcUnsafe2 warnings (#177)
This commit is contained in:
parent
523fa0d3d3
commit
6f441a9c1d
7
nim.cfg
7
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:
|
||||
|
|
|
@ -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) =
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# those terms.
|
||||
|
||||
import
|
||||
std/[json, random],
|
||||
std/random,
|
||||
pkg/unittest2,
|
||||
../web3,
|
||||
chronos, stint,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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] =
|
||||
@[]
|
||||
|
|
Loading…
Reference in New Issue