Skip to content

Commit

Permalink
chore: fix compilation errors fhevm-native
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zk committed Nov 12, 2024
1 parent 2a0eccc commit 8094e07
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fhevm-engine/fhevm-go-native/fhevm/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ func (dbApi *EvmStorageComputationStore) InsertComputationBatch(computations []C
one := big.NewInt(1)

for idx, comp := range bucket {
layout := blockQueueStorageLayout(queueBlockNumber, idx)
layout := blockQueueStorageLayout(queueBlockNumber, int64(idx))
ciphertextsInBlock = ciphertextsInBlock.Add(ciphertextsInBlock, one)
metadata := computationMetadata(*comp)
dbApi.evmStorage.SetState(dbApi.contractStorageAddress, layout.metadata, metadata)
Expand Down Expand Up @@ -507,8 +507,7 @@ func (executorApi *ApiImpl) FlushFheResultsToState(blockNumber int64, api ChainS

// zero out queue ciphertexts
for i := 0; i < int(ctCount); i++ {
ctNumber := big.NewInt(int64(i))
ctAddr := blockQueueStorageLayout(blockNumber, ctNumber)
ctAddr := blockQueueStorageLayout(blockNumber, int64(i))
metadata := bytesToMetadata(api.GetState(executorApi.contractStorageAddress, ctAddr.metadata))
api.SetState(executorApi.contractStorageAddress, ctAddr.metadata, zero)
api.SetState(executorApi.contractStorageAddress, ctAddr.outputHandle, zero)
Expand Down

0 comments on commit 8094e07

Please sign in to comment.