Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(zetatools): cli command to fetch inbound ballot from inbound hash and move to zetatools #3368

Merged
merged 25 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format log lines
  • Loading branch information
kingpinXD committed Jan 20, 2025
commit 021d50dcb8bb7e7433c5648dc03792174e137b55
1 change: 1 addition & 0 deletions cmd/zetatool/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func (c *Config) Save() error {
return err
}
func (c *Config) Read(filename string) error {
// #nosec G304 reading file is safe
data, err := os.ReadFile(filename)
if err != nil {
return err
Expand Down
3 changes: 1 addition & 2 deletions cmd/zetatool/inbound/bitcoin.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,13 @@ func bitcoinBallotIdentifier(
if err != nil {
return "", err
}
// #nosec G115 always positive

event, err := zetaclientObserver.GetBtcEvent(
ctx,
btcClient,
*tx,
tss,
uint64(blockVb.Height),
uint64(blockVb.Height), // #nosec G115 always positive
zerolog.New(zerolog.Nop()),
params,
common.CalcDepositorFee,
Expand Down
Loading