*: gofmt -s

This commit is contained in:
Roman Khimov 2020-12-31 11:51:16 +03:00
parent 50f477b2af
commit 124c674b17

View file

@ -1415,26 +1415,26 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) []
actualp := new([]result.TransferTx)
require.NoError(t, json.Unmarshal(res, actualp))
expected := []result.TransferTx{
result.TransferTx{
{
TxID: txNeoTo1,
Timestamp: bNeo.Timestamp,
Index: bNeo.Index,
SystemFee: "0",
NetworkFee: "0",
Elements: []result.TransferTxEvent{
result.TransferTxEvent{
{
Address: "AKkkumHbBipZ46UMZJoFynJMXzSRnBvKcs",
Type: "input",
Value: "99999000",
Asset: "c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
},
result.TransferTxEvent{
{
Address: "AWLYWXB8C9Lt1nHdDZJnC5cpYJjgRDLk17",
Type: "output",
Value: "1000",
Asset: "c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
},
result.TransferTxEvent{
{
Address: "AKkkumHbBipZ46UMZJoFynJMXzSRnBvKcs",
Type: "output",
Value: "99998000",
@ -1455,28 +1455,28 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) []
actualp = new([]result.TransferTx)
require.NoError(t, json.Unmarshal(res, actualp))
expected = []result.TransferTx{
result.TransferTx{
{
TxID: txNep5Init,
Timestamp: bNep5.Timestamp,
Index: bNep5.Index,
SystemFee: "0",
NetworkFee: "0",
Events: []result.TransferTxEvent{
result.TransferTxEvent{
{
To: "AeEc6DNaiVZSNJfTJ72rAFFqVKAMR5B7i3",
Value: "1000000",
Asset: testContractHashOld,
},
},
},
result.TransferTx{
{
TxID: txNep5Transfer,
Timestamp: bNep5.Timestamp,
Index: bNep5.Index,
SystemFee: "0",
NetworkFee: "0",
Events: []result.TransferTxEvent{
result.TransferTxEvent{
{
From: "AeEc6DNaiVZSNJfTJ72rAFFqVKAMR5B7i3",
To: "AKkkumHbBipZ46UMZJoFynJMXzSRnBvKcs",
Value: "1000",