@@ -23,6 +23,7 @@ import {
2323 parseTransaction ,
2424 parseTokensObject ,
2525 serializeTransaction ,
26+ IgnoreTransactionTreeSimulationError ,
2627} from './models' ;
2728import { Stream , Subscriber } from './stream' ;
2829import { ProviderApiResponse , ProviderRpcClient } from './index' ;
@@ -608,6 +609,8 @@ class ContractMethodImpl implements ContractMethod<any, any> {
608609 params : this . params ,
609610 } ,
610611 stateInit : args . stateInit ,
612+ ignoredActionPhaseCodes : args . ignoredActionPhaseCodes ,
613+ ignoredComputePhaseCodes : args . ignoredComputePhaseCodes ,
611614 } ) ;
612615 return parseTransaction ( transaction ) ;
613616 }
@@ -637,6 +640,8 @@ class ContractMethodImpl implements ContractMethod<any, any> {
637640 params : this . params ,
638641 } ,
639642 stateInit : args . stateInit ,
643+ ignoredActionPhaseCodes : args . ignoredActionPhaseCodes ,
644+ ignoredComputePhaseCodes : args . ignoredComputePhaseCodes ,
640645 } )
641646 . catch ( e => {
642647 subscription . unsubscribe ( ) . catch ( console . error ) ;
@@ -970,6 +975,14 @@ export type SendInternalParams = {
970975 * an error is returned
971976 */
972977 stateInit ?: string ;
978+ /**
979+ * Optional compute phase error codes to be ignored during transaction tree simulation
980+ */
981+ ignoredComputePhaseCodes ?: IgnoreTransactionTreeSimulationError [ ] ;
982+ /**
983+ * Optional action phase error codes to be ignored during transaction tree simulation
984+ */
985+ ignoredActionPhaseCodes ?: IgnoreTransactionTreeSimulationError [ ] ;
973986} ;
974987
975988/**
0 commit comments