Skip to content

Commit

Permalink
Fix settlement contract
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielbosio committed Sep 27, 2024
1 parent 28a1922 commit 21071a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions contract/src/MinaStateSettlement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ contract MinaStateSettlement {
let slot_ledgers := chainLedgerHashes.slot

// first 32 bytes is length of byte array.
// second 32 bytes is the bridge tip state hash
// the next byte is the Devnet flag
// the next 32 bytes set is the bridge tip state hash
// the next BRIDGE_TRANSITION_FRONTIER_LEN sets of 32 bytes are state hashes.
let addr_states := add(pubInput, 64)
let addr_states := add(pubInput, 65)
// the next BRIDGE_TRANSITION_FRONTIER_LEN sets of 32 bytes are ledger hashes.
let addr_ledgers := add(addr_states, mul(32, BRIDGE_TRANSITION_FRONTIER_LEN))

Expand Down
2 changes: 1 addition & 1 deletion core/abi/MinaStateSettlement.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/app/abi/SudokuValidity.json

Large diffs are not rendered by default.

0 comments on commit 21071a0

Please sign in to comment.