|
|
@ -45,8 +45,6 @@ function isDefinition (node: any) { |
|
|
|
node.nodeType === 'EventDefinition' |
|
|
|
node.nodeType === 'EventDefinition' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type nullableAstNode = astNode | null |
|
|
|
type nullableAstNode = astNode | null |
|
|
|
|
|
|
|
|
|
|
|
export function RemixUiEditorContextView(props: RemixUiEditorContextViewProps) { |
|
|
|
export function RemixUiEditorContextView(props: RemixUiEditorContextViewProps) { |
|
|
@ -90,7 +88,7 @@ export function RemixUiEditorContextView (props: RemixUiEditorContextViewProps) |
|
|
|
gasEstimation = await props.gasEstimation(currentNode) |
|
|
|
gasEstimation = await props.gasEstimation(currentNode) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
let activeHighlights = await props.getActiveHighlights() |
|
|
|
const activeHighlights = await props.getActiveHighlights() |
|
|
|
setState(prevState => { |
|
|
|
setState(prevState => { |
|
|
|
return { ...prevState, nodes, references, activeHighlights, currentNode, gasEstimation } |
|
|
|
return { ...prevState, nodes, references, activeHighlights, currentNode, gasEstimation } |
|
|
|
}) |
|
|
|
}) |
|
|
|