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