diff --git a/pkg/rpc/response/result/tx_output.go b/pkg/rpc/response/result/tx_output.go index 4078de755..61baa6973 100644 --- a/pkg/rpc/response/result/tx_output.go +++ b/pkg/rpc/response/result/tx_output.go @@ -20,7 +20,7 @@ func NewTxOutput(out *transaction.Output) *TransactionOutput { return &TransactionOutput{ N: out.Position, - Asset: "0x" + out.AssetID.String(), + Asset: "0x" + out.AssetID.StringLE(), Value: out.Amount, Address: addr, } diff --git a/pkg/rpc/server/server_test.go b/pkg/rpc/server/server_test.go index 35b5407d9..698dbfe23 100644 --- a/pkg/rpc/server/server_test.go +++ b/pkg/rpc/server/server_test.go @@ -1213,7 +1213,7 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) [] err := json.Unmarshal(res, &txOut) require.NoErrorf(t, err, "could not parse response: %s", res) assert.Equal(t, 1, txOut.N) - assert.Equal(t, "0x9b7cffdaa674beae0f930ebe6085af9093e5fe56b34a5c220ccdcf6efc336fc5", txOut.Asset) + assert.Equal(t, "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b", txOut.Asset) assert.Equal(t, util.Fixed8FromInt64(1000), txOut.Value) assert.Equal(t, "AZ81H31DMWzbSnFDLFkzh9vHwaDLayV7fU", txOut.Address) })