@@ -215,25 +215,26 @@ private IncrementalMerkleVoucherContainer createMerkleVoucherContainer() {
215215 return voucher ;
216216 }
217217
218+ private String getParamsFile (String fileName ){
219+ return SendCoinShieldTest .class .getClassLoader ()
220+ .getResource ("params" + File .separator + fileName ).getFile ();
221+ }
218222 private void librustzcashInitZksnarkParams () {
219223
220- String file1 = SendCoinShieldTest .class .getClassLoader ()
221- .getResource ("params" + File .separator + "sapling-spend.params" ).getFile ();
224+ String file1 = getParamsFile ("sapling-spend.params" );
222225
223226 byte [] spend_path = file1 .getBytes ();
224227 int spend_path_len = spend_path .length ;
225228 byte [] spend_hash = ByteArray .fromHexString (
226229 "8270785a1a0d0bc77196f000ee6d221c9c9894f55307bd9357c3f0105d31ca63991ab91324160d8f53e2bbd3c2633a6eb8bdf5205d822e7f3f73edac51b2b70c" );
227230
228- String file2 = SendCoinShieldTest .class .getClassLoader ()
229- .getResource ("params" + File .separator + "sapling-output.params" ).getFile ();
231+ String file2 = getParamsFile ("sapling-output.params" );
230232 byte [] output_path = file2 .getBytes ();
231233 int output_path_len = output_path .length ;
232234 byte [] output_hash = ByteArray .fromHexString (
233235 "657e3d38dbb5cb5e7dd2970e8b03d69b4787dd907285b5a7f0790dcc8072f60bf593b32cc2d1c030e00ff5ae64bf84c5c3beb84ddc841d48264b4a171744d028" );
234236
235- String file3 = SendCoinShieldTest .class .getClassLoader ()
236- .getResource ("params" + File .separator + "sprout-groth16.params" ).getFile ();
237+ String file3 = getParamsFile ("sprout-groth16.params" );
237238 byte [] sprout_path = file3 .getBytes ();
238239 int sprout_path_len = sprout_path .length ;
239240 byte [] sprout_hash = ByteArray .fromHexString (
0 commit comments