Skip to content

Commit

Permalink
text fix
Browse files Browse the repository at this point in the history
  • Loading branch information
axenteoctavian committed Feb 13, 2024
1 parent eae7321 commit 3d8cf76
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions contracts/deploy/dataFormatter_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package deploy

import (
"encoding/hex"
"testing"

"github.com/stretchr/testify/require"
Expand All @@ -27,13 +28,12 @@ func TestDataFormatter_CreateTxsData(t *testing.T) {
})

t.Run("should work", func(t *testing.T) {
expectedTxsData := [][]byte{
{0x01, 0x02},
VmTypeWasmVm,
CodeMetadata,
}

txsData := df.CreateTxsData([]byte{0x01, 0x02})
require.Equal(t, expectedTxsData, txsData)
expectedTxData := []byte(
hex.EncodeToString([]byte{0x01, 0x02}) + "@" +
hex.EncodeToString(VmTypeWasmVm) + "@" +
hex.EncodeToString(CodeMetadata))

txData := df.CreateTxsData([]byte{0x01, 0x02})
require.Equal(t, expectedTxData, txData)
})
}

0 comments on commit 3d8cf76

Please sign in to comment.