Skip to content

Commit 718dae1

Browse files
committed
fix obsolete fn name
1 parent 7bc70c1 commit 718dae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

motoko/basic_bitcoin/src/basic_bitcoin/src/P2trScriptSpend.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module {
7979
amount : Satoshi,
8080
fee_per_vbyte : MillisatoshiPerVByte,
8181
) : async [Nat8] {
82-
let dst_address_typed = Utils.get_ok_except(Address.addressFromText(dst_address), "failed to decode destination address");
82+
let dst_address_typed = Utils.get_ok_expect(Address.addressFromText(dst_address), "failed to decode destination address");
8383

8484
// We have a chicken-and-egg problem where we need to know the length
8585
// of the transaction in order to compute its proper fee, but we need
@@ -93,7 +93,7 @@ module {
9393
var total_fee : Nat = 0;
9494

9595
loop {
96-
let transaction = Utils.get_ok_except(Bitcoin.buildTransaction(2, own_utxos, [(dst_address_typed, amount)], #p2tr_key own_address, Nat64.fromNat(total_fee)), "Error building transaction.");
96+
let transaction = Utils.get_ok_expect(Bitcoin.buildTransaction(2, own_utxos, [(dst_address_typed, amount)], #p2tr_key own_address, Nat64.fromNat(total_fee)), "Error building transaction.");
9797
let tx_in_outpoints = Array.map<TxInput.TxInput, Types.OutPoint>(transaction.txInputs, func(txin) { txin.prevOutput });
9898

9999
let amounts = Array.mapFilter<Utxo, Satoshi>(

0 commit comments

Comments
 (0)