Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
changed type of encryptedCommitmentIndex from bytes to bytes32 for SC…
Browse files Browse the repository at this point in the history
… call
  • Loading branch information
Mikelle committed Apr 15, 2024
1 parent 4574dd7 commit a7b40d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/contracts/preconf/preconf.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,13 @@ func (p *preconfContract) OpenCommitment(
sharedSecretKey []byte,
) (common.Hash, error) {
bidAmt, _ := new(big.Int).SetString(bid, 10)
var eciBytes [32]byte

copy(eciBytes[:], encryptedCommitmentIndex)

callData, err := p.preconfABI.Pack(
"openCommitment",
encryptedCommitmentIndex,
eciBytes,
bidAmt,
big.NewInt(blockNumber),
txnHash,
Expand Down

0 comments on commit a7b40d0

Please sign in to comment.