internal/bech32: fix vet error by making rune conversion explicit (#141)

Fixes #138
This commit is contained in:
Shimmy Xu
2020-09-07 09:07:10 -05:00
committed by GitHub
parent 21a7203f6a
commit 07c72f3b69

View File

@@ -43,7 +43,7 @@ func TestBech32(t *testing.T) {
{"split1a2y9w", false}, // too short data part
{"1checkupstagehandshakeupstreamerranterredcaperred2y9e3w", false}, // empty hrp
// invalid character (DEL) in hrp
{"spl" + string(127) + "t1checkupstagehandshakeupstreamerranterredcaperred2y9e3w", false},
{"spl" + string(rune(127)) + "t1checkupstagehandshakeupstreamerranterredcaperred2y9e3w", false},
// too long
{"11qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqsqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqc8247j", false},