Minor fixes and sample coin "improvements"
This commit is contained in:
@ -8,7 +8,7 @@ import (
|
||||
"github.com/ethereum/eth-go/ethchain"
|
||||
"github.com/ethereum/eth-go/ethdb"
|
||||
"github.com/ethereum/eth-go/ethutil"
|
||||
"github.com/niemeyer/qml"
|
||||
"github.com/go-qml/qml"
|
||||
"math/big"
|
||||
"strings"
|
||||
)
|
||||
@ -24,6 +24,18 @@ type Tx struct {
|
||||
Contract bool
|
||||
}
|
||||
|
||||
type Key struct {
|
||||
Address string
|
||||
}
|
||||
|
||||
type KeyRing struct {
|
||||
Keys []interface{}
|
||||
}
|
||||
|
||||
func NewKeyRing(keys []interface{}) *KeyRing {
|
||||
return &KeyRing{Keys: keys}
|
||||
}
|
||||
|
||||
func NewTxFromTransaction(tx *ethchain.Transaction) *Tx {
|
||||
hash := hex.EncodeToString(tx.Hash())
|
||||
sender := hex.EncodeToString(tx.Recipient)
|
||||
|
Reference in New Issue
Block a user