diff --git a/assetid_v0_test.go b/assetid_v0_test.go index aa42aa4..fb57651 100644 --- a/assetid_v0_test.go +++ b/assetid_v0_test.go @@ -32,7 +32,7 @@ func TestAssetIDv0(t *testing.T) { require.Equal(t, x.Address, assetID.Address()) // Check type conversions - require.Equal(t, string(assetID), assetID.String()) + require.Equal(t, "0x"+string(assetID), assetID.String()) require.Equal(t, must(decodeHexString(string(assetID))), assetID.Bytes()) // Check identifier conversion @@ -47,7 +47,7 @@ func TestAssetIDv0(t *testing.T) { require.Equal(t, x.Stateful, identifier.IsStateful()) require.Equal(t, x.Dimension, identifier.Dimension()) - require.Equal(t, x.Standard, identifier.Standard()) + require.Equal(t, uint64(x.Standard), identifier.Standard()) require.Equal(t, x.Address, identifier.Address()) // Check serialization diff --git a/logicid_test.go b/logicid_test.go index 0498009..4811685 100644 --- a/logicid_test.go +++ b/logicid_test.go @@ -34,7 +34,7 @@ func TestLogicIDv0(t *testing.T) { require.Equal(t, x.Address, logicID.Address()) // Check type conversions - require.Equal(t, string(logicID), logicID.String()) + require.Equal(t, "0x"+string(logicID), logicID.String()) require.Equal(t, must(decodeHexString(string(logicID))), logicID.Bytes()) // Check identifier conversion @@ -50,7 +50,7 @@ func TestLogicIDv0(t *testing.T) { require.Equal(t, x.Interactive, identifier.HasInteractableSites()) require.Equal(t, x.AssetLogic, identifier.AssetLogic()) - require.Equal(t, x.Edition, identifier.Edition()) + require.Equal(t, uint64(x.Edition), identifier.Edition()) require.Equal(t, x.Address, identifier.Address()) // Check serialization