Skip to content

Commit

Permalink
add roots to genTxWithSign
Browse files Browse the repository at this point in the history
  • Loading branch information
gordon-sero committed Aug 8, 2019
1 parent f35cf34 commit 6481100
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion internal/ethapi/api_exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ func (s *PublicExchangeAPI) GenTxWithSign(ctx context.Context, param GenTxArgs)
if err := param.check(); err != nil {
return nil, err
}
_, tx, e := exchange.CurrentExchange().GenTxWithSign(param.toTxParam())
txParam, tx, e := exchange.CurrentExchange().GenTxWithSign(param.toTxParam())
if tx != nil {
for _, in := range txParam.Ins {
tx.Roots = append(tx.Roots, in.Out.Root)
}
}
return tx, e
}

Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const (
VersionMajor = 1 // Major version component of the current release
VersionMinor = 0 // Minor version component of the current release
VersionPatch = 0 // Patch version component of the current release
VersionMeta = "rc6" // Version metadata to append to the version string
VersionMeta = "rc7" // Version metadata to append to the version string
)

// Version holds the textual version string.
Expand Down
1 change: 1 addition & 0 deletions zero/txtool/iface.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type GTx struct {
GasPrice hexutil.Big
Tx stx.T
Hash keys.Uint256
Roots []keys.Uint256
}

type GPkgCloseCmd struct {
Expand Down

0 comments on commit 6481100

Please sign in to comment.