core: improve Gas accessor

This commit is contained in:
Felix Lange 2023-10-27 16:09:55 +02:00
parent 359171f2b0
commit 04f173ed72

View file

@ -186,7 +186,7 @@ func (b *BlockGen) BaseFee() *big.Int {
// Gas returns the amount of gas left in the current block.
func (b *BlockGen) Gas() uint64 {
return b.header.GasLimit - b.header.GasUsed
return b.gasPool.Gas()
}
// Signer returns a valid signer instance for the current block.