Skip to content

Commit e822ae5

Browse files
committed
make fmt
1 parent 0c547c3 commit e822ae5

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package testutils
2+
23
import (
3-
"fmt"
44
"testing"
5+
56
"gno.land/p/demo/uassert"
67
)
78

89
func TestTestAddress(t *testing.T) {
910
testAddr := TestAddress("author1")
1011
uassert.Equal(t, "g1v96hg6r0wgc47h6lta047h6lta047h6lm33tq6", string(testAddr))
11-
}
12+
}

gnovm/stdlibs/crypto/bech32/bech32_test.gno

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,4 +688,4 @@ func BenchmarkConvertBitsUp(b *testing.B) {
688688
b.Fatalf("error converting bits: %v", err)
689689
}
690690
}
691-
}
691+
}

gnovm/stdlibs/crypto/bech32/error.gno

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ func (e ErrInvalidLength) Error() string {
4141
type ErrInvalidCharacter rune
4242

4343
func (e ErrInvalidCharacter) Error() string {
44-
return "invalid character in string: "+ string(e)
44+
return "invalid character in string: " + string(e)
4545
}
4646

4747
// ErrInvalidSeparatorIndex is returned when the separator character '1' is
4848
// in an invalid position in the bech32 string.
4949
type ErrInvalidSeparatorIndex int
5050

5151
func (e ErrInvalidSeparatorIndex) Error() string {
52-
return "invalid separator index"+ string(e)
52+
return "invalid separator index" + string(e)
5353
}
5454

5555
// ErrNonCharsetChar is returned when a character outside of the specific
@@ -70,14 +70,14 @@ type ErrInvalidChecksum struct {
7070
}
7171

7272
func (e ErrInvalidChecksum) Error() string {
73-
return "invalid checksum (expected (bech32="+e.Expected+
74-
" bech32m=)"+e.ExpectedM +", got "+ e.Actual+ ")"
73+
return "invalid checksum (expected (bech32=" + e.Expected +
74+
" bech32m=)" + e.ExpectedM + ", got " + e.Actual + ")"
7575
}
7676

7777
// ErrInvalidDataByte is returned when a byte outside the range required for
7878
// conversion into a string was found.
7979
type ErrInvalidDataByte byte
8080

8181
func (e ErrInvalidDataByte) Error() string {
82-
return "invalid data byte: "+ string(e)
83-
}
82+
return "invalid data byte: " + string(e)
83+
}

gnovm/stdlibs/crypto/bech32/version.gno

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ var VersionToConsts = map[Version]ChecksumConst{
4040
var ConstsToVersion = map[ChecksumConst]Version{
4141
Version0Const: Version0,
4242
VersionMConst: VersionM,
43-
}
43+
}

0 commit comments

Comments
 (0)