Skip to content

Commit

Permalink
Update Silkwrom Hash struct (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacekGlen authored Sep 23, 2024
1 parent 978f68e commit cdb6e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func (s *Silkworm) VerifyChain(headHash Hash) (ForkValidatorValidationResult, er

cResult := C.struct_SilkwormForkValidatorValidationResult{}

status := C.silkworm_fork_validator_verify_chain(s.handle, *(*C.struct_bytes_32)(cHeadHash), &cResult)
status := C.silkworm_fork_validator_verify_chain(s.handle, *(*C.struct_SilkwormBytes32)(cHeadHash), &cResult)

if status == SILKWORM_OK {
return ForkValidatorValidationResult{
Expand All @@ -378,7 +378,7 @@ func (s *Silkworm) ForkChoiceUpdate(headHash Hash, finalizedHash Hash, safeHash
cSafeHash := C.CBytes(safeHash[:])
defer C.free(cSafeHash)

status := C.silkworm_fork_validator_fork_choice_update(s.handle, *(*C.struct_bytes_32)(cHeadHash), *(*C.struct_bytes_32)(cFinalizedHash), *(*C.struct_bytes_32)(cSafeHash))
status := C.silkworm_fork_validator_fork_choice_update(s.handle, *(*C.struct_SilkwormBytes32)(cHeadHash), *(*C.struct_SilkwormBytes32)(cFinalizedHash), *(*C.struct_SilkwormBytes32)(cSafeHash))

if status == SILKWORM_OK {
return nil
Expand Down

0 comments on commit cdb6e5a

Please sign in to comment.