Skip to content

Commit

Permalink
Make Post0132Hash public
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Jan 15, 2025
1 parent 82d2fbb commit ea22ee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func blockHash(b *Block, stateDiff *StateDiff, network *utils.Network, overrideS

// if 0.13.2 <= block.version < 0.13.4
if blockVer.GreaterThanEqual(Ver0_13_2) {
return post0132Hash(b, stateDiff)
return Post0132Hash(b, stateDiff)
}

// following statements applied only if block.version < 0.13.2
Expand Down Expand Up @@ -251,7 +251,7 @@ func post0134Hash(b *Block, stateDiff *StateDiff) (*felt.Felt, *BlockCommitments
}, nil
}

func post0132Hash(b *Block, stateDiff *StateDiff) (*felt.Felt, *BlockCommitments, error) {
func Post0132Hash(b *Block, stateDiff *StateDiff) (*felt.Felt, *BlockCommitments, error) {
var txCommitment, eCommitment, rCommitment, sdCommitment *felt.Felt
var sdLength uint64
var tErr, eErr, rErr error
Expand Down

0 comments on commit ea22ee2

Please sign in to comment.