Skip to content

Commit

Permalink
fix: Fix incorrect text output in ReportBalances function (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdqst authored Dec 22, 2024
1 parent 98d346d commit ae515df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-withdrawer/example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func ReportBalances(ctx context.Context, l1, l2 *ethclient.Client, addr common.A
l1b, _ := l1.BalanceAt(ctx, addr, nil)
l2b, _ := l2.BalanceAt(ctx, addr, nil)
if l1Balance != nil {
fmt.Printf("Balance change of %s on L2: %s, L3: %s\n\n", addr, new(big.Int).Sub(l1b, l1Balance), new(big.Int).Sub(l2b, l2Balance))
fmt.Printf("Balance change of %s on L1: %s, L2: %s\n\n", addr, new(big.Int).Sub(l1b, l1Balance), new(big.Int).Sub(l2b, l2Balance))
}
l1Balance = l1b
l2Balance = l2b
Expand Down

0 comments on commit ae515df

Please sign in to comment.