diff --git a/nodeInterface/NodeInterface.go b/nodeInterface/NodeInterface.go index ced77dc683..d5fa7ace7e 100644 --- a/nodeInterface/NodeInterface.go +++ b/nodeInterface/NodeInterface.go @@ -427,6 +427,10 @@ func (n NodeInterface) GasEstimateComponents( return 0, 0, nil, nil, err } + if to == types.NodeInterfaceAddress || to == types.NodeInterfaceDebugAddress { + return 0, 0, nil, nil, errors.New("cannot estimate virtual contract") + } + msg := n.sourceMessage context := n.context chainid := evm.ChainConfig().ChainID