@@ -190,11 +190,7 @@ export class WasmContractHandlerApi<State> implements HandlerApi<State> {
|
||||
});
|
||||
|
||||
const { stateEvaluator } = executionContext.warp;
|
||||
const childContract = executionContext.warp.contract(
|
||||
contractTxId,
|
||||
executionContext.contract,
|
||||
interactionTx
|
||||
);
|
||||
const childContract = executionContext.warp.contract(contractTxId, executionContext.contract, interactionTx);
|
||||
|
||||
await stateEvaluator.onContractCall(interactionTx, executionContext, currentResult);
|
||||
|
||||
@@ -244,14 +240,10 @@ export class WasmContractHandlerApi<State> implements HandlerApi<State> {
|
||||
]);
|
||||
|
||||
this.logger.debug('Cache result?:', !this.swGlobal._activeTx.dry);
|
||||
await executionContext.warp.stateEvaluator.onInternalWriteStateUpdate(
|
||||
this.swGlobal._activeTx,
|
||||
contractTxId,
|
||||
{
|
||||
state: result.state as State,
|
||||
validity: {}
|
||||
}
|
||||
);
|
||||
await executionContext.warp.stateEvaluator.onInternalWriteStateUpdate(this.swGlobal._activeTx, contractTxId, {
|
||||
state: result.state as State,
|
||||
validity: {}
|
||||
});
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user