@@ -117,6 +117,7 @@ def submit_vote(
117117 keys : list [clusterlib .FileType ],
118118 script_votes : clusterlib .OptionalScriptVotes = (),
119119 submit_method : str = "" ,
120+ use_build_cmd : bool = True ,
120121 build_method : str = clusterlib_utils .BuildMethods .BUILD ,
121122 witness_count_add : int = 0 ,
122123) -> clusterlib .TxRawOutput :
@@ -134,6 +135,7 @@ def submit_vote(
134135 name_template = f"{ name_template } _vote" ,
135136 src_address = payment_addr .address ,
136137 submit_method = submit_method ,
138+ use_build_cmd = use_build_cmd ,
137139 build_method = build_method ,
138140 tx_files = tx_files ,
139141 script_votes = script_votes ,
@@ -162,6 +164,7 @@ def cast_vote(
162164 cc_skip_votes : bool = False ,
163165 drep_skip_votes : bool = False ,
164166 spo_skip_votes : bool = False ,
167+ use_build_cmd : bool = True ,
165168 build_method : str | None = None ,
166169 witness_count_add : int = 0 ,
167170) -> governance_utils .VotedVotes :
@@ -174,7 +177,10 @@ def cast_vote(
174177 anchor_data = governance_utils .get_default_anchor_data ()
175178
176179 if build_method is None :
177- build_method = clusterlib_utils .BuildMethods .BUILD
180+ if use_build_cmd :
181+ build_method = clusterlib_utils .BuildMethods .BUILD
182+ else :
183+ build_method = clusterlib_utils .BuildMethods .BUILD_RAW
178184
179185 if approve_cc is not None :
180186 _votes_cc = [
0 commit comments