File tree Expand file tree Collapse file tree 5 files changed +8
-15
lines changed
Expand file tree Collapse file tree 5 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 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:
Original file line number Diff line number Diff line change @@ -16,11 +16,10 @@ import
1616type
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
2625proc checkData (a: seq [byte ], expectedData: string ) =
Original file line number Diff line number Diff line change 88# those terms.
99
1010import
11- std/ [json, random] ,
11+ std/ random,
1212 pkg/ unittest2,
1313 ../ web3,
1414 chronos, stint,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
1717func parseCmdArg * (T: type Address , input: string ): T
1818 {.raises : [ValueError ].} =
19- fromHex (T, string input)
19+ fromHex (T, input)
2020
2121func completeCmdArg * (T: type Address , input: string ): seq [string ] =
2222 @ []
You can’t perform that action at this time.
0 commit comments