Skip to content

Commit

Permalink
Fix UUID + prover rc16 (0xPolygonHermez#2963)
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR552 authored Dec 21, 2023
1 parent 4290837 commit 64e5327
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions merkletree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (tree *StateTree) SetCode(ctx context.Context, address common.Address, code
}

// store smart contract code by its hash
err = tree.setProgram(ctx, scCodeHash4, code, true)
err = tree.setProgram(ctx, scCodeHash4, code, true, uuid)
if err != nil {
return nil, nil, err
}
Expand Down Expand Up @@ -308,7 +308,7 @@ func (tree *StateTree) set(ctx context.Context, oldRoot, key, value []uint64, uu
}, nil
}

func (tree *StateTree) setProgram(ctx context.Context, key []uint64, data []byte, persistent bool) error {
func (tree *StateTree) setProgram(ctx context.Context, key []uint64, data []byte, persistent bool, uuid string) error {
persistence := hashdb.Persistence_PERSISTENCE_TEMPORARY
if persistent {
persistence = hashdb.Persistence_PERSISTENCE_DATABASE
Expand All @@ -318,6 +318,7 @@ func (tree *StateTree) setProgram(ctx context.Context, key []uint64, data []byte
Key: &hashdb.Fea{Fe0: key[0], Fe1: key[1], Fe2: key[2], Fe3: key[3]},
Data: data,
Persistence: persistence,
BatchUuid: uuid,
TxIndex: 0,
BlockIndex: 0,
})
Expand Down
2 changes: 1 addition & 1 deletion test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ services:

zkevm-prover:
container_name: zkevm-prover
image: hermeznetwork/zkevm-prover:v4.0.0-RC15
image: hermeznetwork/zkevm-prover:v4.0.0-RC16
ports:
- 50061:50061 # MT
- 50071:50071 # Executor
Expand Down

0 comments on commit 64e5327

Please sign in to comment.