Skip to content

Commit

Permalink
psbt: Update missed java wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jgriffiths committed Dec 3, 2020
1 parent ebd3d8f commit 973bc70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/swig_java/jni_elements_extra.java_in
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
return buf;
}

public final static byte[] psbt_get_input_abf(Object psbt, long idx) {
final byte[] buf = new byte[psbt_get_input_abf_len(psbt, idx)];
public final static byte[] psbt_get_input_inflation_keys_rangeproof(Object psbt, long idx) {
final byte[] buf = new byte[psbt_get_input_inflation_keys_rangeproof_len(psbt, idx)];
if (buf.length == 0) return buf;
final int len = psbt_get_input_abf(psbt, idx, buf);
final int len = psbt_get_input_inflation_keys_rangeproof(psbt, idx, buf);
return checkBuffer(buf, len);
}

Expand Down
6 changes: 3 additions & 3 deletions src/swig_java/swig.i
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ static jbyteArray create_array(JNIEnv *jenv, const unsigned char* p, size_t len)
%returns_struct(wally_psbt_from_bytes, wally_psbt);
%returns_struct(wally_psbt_get_global_tx_alloc, wally_tx);
%rename("psbt_get_global_tx") wally_psbt_get_global_tx_alloc;
%returns_size_t(wally_psbt_get_input_abf);
%returns_size_t(wally_psbt_get_input_abf_len);
%returns_size_t(wally_psbt_get_input_inflation_keys_rangeproof);
%returns_size_t(wally_psbt_get_input_inflation_keys_rangeproof_len);
%returns_size_t(wally_psbt_get_input_issuance_amount_rangeproof);
%returns_size_t(wally_psbt_get_input_issuance_amount_rangeproof_len);
%returns_size_t(wally_psbt_get_input_redeem_script);
Expand Down Expand Up @@ -565,7 +565,7 @@ static jbyteArray create_array(JNIEnv *jenv, const unsigned char* p, size_t len)
%returns_void__(wally_psbt_remove_input);
%returns_void__(wally_psbt_remove_output);
%returns_void__(wally_psbt_set_global_tx);
%returns_void__(wally_psbt_set_input_abf);
%returns_void__(wally_psbt_set_input_inflation_keys_rangeproof);
%returns_void__(wally_psbt_set_input_issuance_amount_rangeproof);
%returns_void__(wally_psbt_set_input_pegin_claim_script);
%returns_void__(wally_psbt_set_input_final_scriptsig);
Expand Down

0 comments on commit 973bc70

Please sign in to comment.