mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
a031b0fe49
This reverts commit a49e57e3
11 lines
322 B
Dart
11 lines
322 B
Dart
import 'dart:typed_data';
|
|
import 'package:bitcoin_base/bitcoin_base.dart' as bitcoin;
|
|
|
|
List<int> addressToOutputScript(String address, bitcoin.BasedUtxoNetwork network) {
|
|
try {
|
|
return bitcoin.addressToOutputScript(address: address, network: network);
|
|
} catch (err) {
|
|
print(err);
|
|
return Uint8List(0);
|
|
}
|
|
}
|