good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit b6912c10 authored by rene's avatar rene Committed by GitHub
Browse files

core: add BlockGen.GetBalance method (#22589)

parent 76700ac8
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,11 @@ func (b *BlockGen) AddTxWithChain(bc *BlockChain, tx *types.Transaction) {
b.receipts = append(b.receipts, receipt)
}
// GetBalance returns the balance of the given address at the generated block.
func (b *BlockGen) GetBalance(addr common.Address) *big.Int {
return b.statedb.GetBalance(addr)
}
// AddUncheckedTx forcefully adds a transaction to the block without any
// validation.
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment