SmartWeaveTags && SmartWeaveError

This commit is contained in:
asiaziola
2022-05-25 15:53:38 +02:00
parent 058eab7dce
commit 922899eb8c
16 changed files with 100 additions and 93 deletions

View File

@@ -6,8 +6,8 @@ import {
ExecutorFactory,
HandlerApi,
LoggerFactory,
WarpError,
WarpErrorType
SmartWeaveError,
SmartWeaveErrorType
} from '@warp';
/*
@@ -89,7 +89,7 @@ export class Evolve implements ExecutionContextModifier {
return executionContext;
} catch (e) {
throw new WarpError(WarpErrorType.CONTRACT_NOT_FOUND, {
throw new SmartWeaveError(SmartWeaveErrorType.CONTRACT_NOT_FOUND, {
message: `Contract having txId: ${contractTxId} not found`,
requestedTxId: contractTxId
});