Skip to content

Commit

Permalink
add: submit log
Browse files Browse the repository at this point in the history
  • Loading branch information
bladehan1 committed Sep 27, 2023
1 parent 77bc12e commit 3c4bf23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helper/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,16 @@ func (c *ContractCaller) SendCheckpoint(signedData []byte, sigs [][3]*big.Int,
Logger.Debug("Sending new checkpoint",
"sigs", strings.Join(s, ","),
"data", hex.EncodeToString(signedData),
"rootChain", rootChain,
)

tx, err := rootChainInstance.SubmitCheckpoint(auth, signedData, sigs)
if err != nil {
Logger.Error("Error while submitting checkpoint", "error", err)
return err
}
Logger.Info("Submitted new checkpoint to rootchain successfully", "txHash", tx.Hash().String())

Logger.Info("Submitted new checkpoint to rootchain successfully", "rootChain", rootChain, "txHash", tx.Hash().String())
return
}

Expand Down

0 comments on commit 3c4bf23

Please sign in to comment.