Skip to content

Commit

Permalink
simplifying byte conversion based on updated go-linter
Browse files Browse the repository at this point in the history
  • Loading branch information
theflyingcodr committed Jul 26, 2021
1 parent aba1414 commit 1ead0f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bscript/bip276_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func TestDecodeBIP276(t *testing.T) {
assert.Equal(t, `"bitcoin-script"`, fmt.Sprintf("%q", prefix))
assert.Equal(t, 1, network)
assert.Equal(t, 1, version)
assert.Equal(t, "fake script", fmt.Sprintf("%s", data))
assert.Equal(t, "fake script", string(data))
})

t.Run("invalid decode", func(t *testing.T) {
Expand All @@ -123,6 +123,6 @@ func TestDecodeBIP276(t *testing.T) {
assert.Equal(t, `"bitcoin-script"`, fmt.Sprintf("%q", prefix))
assert.Equal(t, 1, network)
assert.Equal(t, 1, version)
assert.Equal(t, "fake scrip", fmt.Sprintf("%s", data))
assert.Equal(t, "fake scrip", string(data))
})
}

0 comments on commit 1ead0f5

Please sign in to comment.