diff --git a/emulator/blockchain.go b/emulator/blockchain.go index c7c48ccd..63c35bc1 100644 --- a/emulator/blockchain.go +++ b/emulator/blockchain.go @@ -790,7 +790,7 @@ func configureTransactionValidator(conf config, blocks *blocks) *access.Transact ) } -func (b *Blockchain) newFVMContextFromHeader(header *flowgo.Header) fvm.Context { +func (b *Blockchain) setFVMContextFromHeader(header *flowgo.Header) fvm.Context { b.vmCtx = fvm.NewContextFromParent( b.vmCtx, fvm.WithBlockHeader(header), @@ -1183,7 +1183,7 @@ func (b *Blockchain) executeBlock() ([]*types.TransactionResult, error) { } header := b.pendingBlock.Block().Header - blockContext := b.newFVMContextFromHeader(header) + blockContext := b.setFVMContextFromHeader(header) // cannot execute a block that has already executed if b.pendingBlock.ExecutionComplete() { @@ -1211,7 +1211,7 @@ func (b *Blockchain) ExecuteNextTransaction() (*types.TransactionResult, error) defer b.mu.Unlock() header := b.pendingBlock.Block().Header - blockContext := b.newFVMContextFromHeader(header) + blockContext := b.setFVMContextFromHeader(header) return b.executeNextTransaction(blockContext) }