Skip to content

Commit 6113e95

Browse files
hewigovensvikmeup
andauthored
Add token transfers to Transaction model (#41)
* add token transfers to v1 Tx * add filter token transfers * Update tx.go Co-authored-by: Viktor Radchenko <1641795+vikmeup@users.noreply.github.com>
1 parent 8638b40 commit 6113e95

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
GOBASE := $(shell pwd)
22
GOBIN := $(GOBASE)/bin
33

4-
test: test-networks
4+
test: test-network
55
go test -v ./...
66

7-
test-networks:
8-
cd ./networks; \
7+
test-network:
8+
cd ./network; \
99
go test -v ./...; \
1010

1111
generate-coins:

types/tx.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ type (
9898
Outputs []TxOutput `json:"outputs,omitempty"`
9999
// Transaction Direction
100100
Direction Direction `json:"direction,omitempty"`
101+
// TokenTransfers
102+
TokenTransfers []TokenTransfer `json:"token_transfers,omitempty"`
101103
// Meta data object
102104
Memo string `json:"memo"`
103105
Meta interface{} `json:"metadata"`

0 commit comments

Comments
 (0)