Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ switch("passL", "-fno-omit-frame-pointer")

--threads:on
--opt:speed
--mm:refc
--mm:orc
--excessiveStackTrace:on
# enable metric collection
--define:metrics
Expand Down
6 changes: 3 additions & 3 deletions execution_chain/evm/async_evm.nim
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ proc callFetchingState(
vmState.ledger.rollback(sp) # all state changes from the call are reverted

# Collect the keys after executing the transaction
lastWitnessKeys = ensureMove(witnessKeys)
lastWitnessKeys = move(witnessKeys)
witnessKeys = vmState.ledger.getWitnessKeys()

try:
Expand Down Expand Up @@ -313,7 +313,7 @@ func validateSetDefaults(tx: TransactionArgs): Result[TransactionArgs, string] =
if tx.gas.isNone():
tx.gas = Opt.some(EVM_CALL_GAS_CAP.Quantity)

ok(ensureMove(tx))
ok(move(tx))

proc call*(
evm: AsyncEvm, header: Header, tx: TransactionArgs, optimisticStateFetch = true
Expand Down Expand Up @@ -364,7 +364,7 @@ proc createAccessList*(
else:
al.add(adr)

var txWithAl = ensureMove(tx)
var txWithAl = tx
txWithAl.accessList = Opt.some(al.getAccessList())
# converts to transactions.AccessList

Expand Down
3 changes: 3 additions & 0 deletions portal/network/beacon/beacon_init_loader.nim
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ type NetworkInitData* = object
forks*: ForkDigests
genesis_validators_root*: Eth2Digest

template loadNetworkMetaData*(networkName: string): Eth2NetworkMetadata =
loadEth2Network(some("mainnet"))

proc loadNetworkData*(networkName: string): NetworkInitData =
let
metadata = loadEth2Network(some("mainnet"))
Expand Down
2 changes: 1 addition & 1 deletion portal/tests/beacon_network_tests/test_beacon_content.nim
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ suite "Beacon Content Keys and Values":
kind: LightClientDataFork.Altair, altairData: altairData
)
updateList = ForkedLightClientUpdateList.init(@[update, update])
cfg = loadNetworkData("mainnet").metadata.cfg
cfg = loadNetworkMetaData("mainnet").cfg

encoded = encodeLightClientUpdatesForked(updateList, forkDigests, cfg)
decoded = decodeLightClientUpdatesByRange(forkDigests, encoded)
Expand Down
Loading