chore: make fmt.Errorf use %w to wrap error instead of %v (#20350)

This commit is contained in:
Hoa Nguyen
2024-05-12 08:11:25 +00:00
committed by GitHub
parent 6853ba0468
commit 22aa95ccbd
20 changed files with 42 additions and 37 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ func (u Uint) IsNil() bool {
func NewUintFromBigInt(i *big.Int) Uint {
u, err := checkNewUint(i)
if err != nil {
panic(fmt.Errorf("overflow: %s", err))
panic(fmt.Errorf("overflow: %w", err))
}
return u
}