Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
baitcode committed Jan 17, 2025
1 parent 715df00 commit 5173de0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hash/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,11 @@ func CompiledClassHash(casmClass contracts.CasmClass) *felt.Felt {
L1HandleHash := hashCasmClassEntryPointByType(casmClass.EntryPointByType.L1Handler)
ConstructorHash := hashCasmClassEntryPointByType(casmClass.EntryPointByType.Constructor)

var ByteCodeHasH *felt.Felt = nil
var ByteCodeHasH *felt.Felt

if casmClass.BytecodeSegmentLengths != nil {
ByteCodeHasH, _ = hashCasmClassByteCode(casmClass.ByteCode, *casmClass.BytecodeSegmentLengths)
}
if ByteCodeHasH == nil {
} else {
ByteCodeHasH = curve.PoseidonArray(casmClass.ByteCode...)
}

Expand Down

0 comments on commit 5173de0

Please # to comment.