Skip to content

Commit

Permalink
Merge pull request #72 from bladehan1/add-log
Browse files Browse the repository at this point in the history
chg: add checkpoint log
  • Loading branch information
bladehan1 authored Oct 13, 2023
2 parents fd41681 + 3c4bf23 commit dad2493
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 dad2493

Please sign in to comment.