Skip to content

Commit

Permalink
fix CI unit test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Nov 1, 2024
1 parent 18e4f32 commit 599d887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zetaclient/chains/bitcoin/tx_script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,8 @@ func TestDecodeScript(t *testing.T) {
})

t.Run("decode error due to missing data for public key", func(t *testing.T) {
// missing OP_ENDIF at the end
data := "2001a7bae79bd61c2368fe41a565061d6cf22b4f509fbc1652caea06d98b8fd0"
// require OP_DATA_32 but OP_DATA_31 is given
data := "1f01a7bae79bd61c2368fe41a565061d6cf22b4f509fbc1652caea06d98b8fd0"
script, _ := hex.DecodeString(data)

memo, isFound, err := bitcoin.DecodeScript(script)
Expand Down

0 comments on commit 599d887

Please sign in to comment.