aboutsummaryrefslogtreecommitdiffstats
path: root/ui/library.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/library.go')
-rw-r--r--ui/library.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/library.go b/ui/library.go
index 3bbb01314..8dda0a89e 100644
--- a/ui/library.go
+++ b/ui/library.go
@@ -9,7 +9,7 @@ import (
)
type EthLib struct {
- blockManager *ethchain.BlockManager
+ stateManager *ethchain.StateManager
blockChain *ethchain.BlockChain
txPool *ethchain.TxPool
}
@@ -32,7 +32,7 @@ func (lib *EthLib) CreateTx(receiver, a, data string) string {
amount := ethutil.Big(a)
code := ethchain.Compile(strings.Split(data, "\n"))
tx := ethchain.NewTransaction(hash, amount, code)
- tx.Nonce = lib.blockManager.GetAddrState(keyRing.Get(1).Bytes()).Nonce
+ tx.Nonce = lib.stateManager.GetAddrState(keyRing.Get(1).Bytes()).Nonce
tx.Sign(keyRing.Get(0).Bytes())