Skip to content

Commit

Permalink
Update hash.go
Browse files Browse the repository at this point in the history
  • Loading branch information
youyyytrok authored Feb 4, 2025
1 parent fb6167b commit 90e56db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hash/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func ClassHash(contract rpc.ContractClass) *felt.Felt {
SierraProgamHash := curve.PoseidonArray(contract.SierraProgram...)
ABIHash := curve.StarknetKeccak([]byte(contract.ABI))

// https://docs.starknet.io/architecture-and-concepts/network-architecture/transactions/#v3_hash_calculation_3
// https://docs.starknet.io/architecture-and-concepts/smart-contracts/class-hash/#computing_the_cairo_1_class_hash
return curve.PoseidonArray(ContractClassVersionHash, ExternalHash, L1HandleHash, ConstructorHash, ABIHash, SierraProgamHash)
}

Expand Down

0 comments on commit 90e56db

Please sign in to comment.