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

removing repetitive and faulty strings #6

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
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
19 changes: 9 additions & 10 deletions src/sdk/tx/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
close(txHashCh2)
return
}
fmt.Println("Data submitted successfully")
}()
blockHash := <-BlockHashCh2
txHash := <-txHashCh2
Expand All @@ -66,7 +65,7 @@
close(txHashCh2)
return
}
fmt.Println("Data submitted successfully")

}()
blockHash := <-BlockHashCh2
txHash := <-txHashCh2
Expand Down Expand Up @@ -149,7 +148,7 @@
close(txHashCh2)
return
}
fmt.Println("Data submitted successfully")

}()
blockHash := <-BlockHashCh2
txHash := <-txHashCh2
Expand Down Expand Up @@ -178,7 +177,7 @@
close(txHashCh2)
return
}
fmt.Println("Data submitted successfully")

}()
blockHash := <-BlockHashCh2
txHash := <-txHashCh2
Expand Down Expand Up @@ -206,7 +205,7 @@
close(txHashCh2)
return
}
fmt.Println("Data submitted successfully")

}()
blockHash := <-BlockHashCh2
txHash := <-txHashCh2
Expand All @@ -229,7 +228,7 @@
close(txHashCh2)
return
}
fmt.Println("Data submitted successfully")

}()
blockHash := <-BlockHashCh2
txHash := <-txHashCh2
Expand Down Expand Up @@ -262,7 +261,7 @@
close(txHashCh2)
return
}
fmt.Println("Data submitted successfully")

}()
blockHash := <-BlockHashCh2
txHash := <-txHashCh2
Expand Down Expand Up @@ -296,7 +295,7 @@
close(txHashCh2)
return
}
fmt.Println("Data submitted successfully")

}()
blockHash := <-BlockHashCh2
txHash := <-txHashCh2
Expand All @@ -319,7 +318,7 @@
close(txHashCh2)
return
}
fmt.Println("Data submitted successfully")

}()
blockHash := <-BlockHashCh2
txHash := <-txHashCh2
Expand All @@ -335,12 +334,12 @@
txHashCh2 := make(chan types.Hash)
commissionStr, err := commissionNumberToPerbill(commissionNum)
if err != nil {
fmt.Errorf("failed to convert commission to Perbill: %v", err)

Check failure on line 337 in src/sdk/tx/transactions.go

View workflow job for this annotation

GitHub Actions / Lint

unusedresult: result of fmt.Errorf call not used (govet)
}

commission, err := strconv.ParseUint(commissionStr, 10, 64)
if err != nil {
fmt.Errorf("failed to parse commission string: %v", err)

Check failure on line 342 in src/sdk/tx/transactions.go

View workflow job for this annotation

GitHub Actions / Lint

unusedresult: result of fmt.Errorf call not used (govet)
}

// Define the ValidatorPrefs struct manually
Expand All @@ -362,7 +361,7 @@
close(txHashCh2)
return
}
fmt.Println("Data submitted successfully")

}()
blockHash := <-BlockHashCh2
txHash := <-txHashCh2
Expand Down
Loading