Commit 39ae2f1 1 parent ab9c2e1 commit 39ae2f1 Copy full SHA for 39ae2f1
File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,10 @@ func (api *DnaApi) GetCoinbaseAddr() common.Address {
50
50
}
51
51
52
52
type Balance struct {
53
- Stake decimal.Decimal `json:"stake"`
54
- Balance decimal.Decimal `json:"balance"`
55
- Nonce uint32 `json:"nonce"`
53
+ Stake decimal.Decimal `json:"stake"`
54
+ Balance decimal.Decimal `json:"balance"`
55
+ Nonce uint32 `json:"nonce"`
56
+ MempoolNonce uint32 `json:"mempoolNonce"`
56
57
}
57
58
58
59
func (api * DnaApi ) GetBalance (address common.Address ) Balance {
@@ -64,9 +65,10 @@ func (api *DnaApi) GetBalance(address common.Address) Balance {
64
65
}
65
66
66
67
return Balance {
67
- Stake : blockchain .ConvertToFloat (state .State .GetStakeBalance (address )),
68
- Balance : blockchain .ConvertToFloat (state .State .GetBalance (address )),
69
- Nonce : nonce ,
68
+ Stake : blockchain .ConvertToFloat (state .State .GetStakeBalance (address )),
69
+ Balance : blockchain .ConvertToFloat (state .State .GetBalance (address )),
70
+ Nonce : nonce ,
71
+ MempoolNonce : state .NonceCache .GetNonce (address , currentEpoch ),
70
72
}
71
73
}
72
74
You can’t perform that action at this time.
0 commit comments