Skip to content

Commit

Permalink
upgrade to dart 3
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-CStack committed May 30, 2023
1 parent e659c03 commit d961b86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions example/bip47_example.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:bip32/bip32.dart';
import 'package:bip39/bip39.dart' as bip39;
import 'package:bip47/bip47.dart';
import 'package:bitcoindart/bitcoindart.dart';

void main() async {
String seedAlice =
Expand All @@ -13,6 +14,8 @@ void main() async {
// initialize from bip32 node pubkey and chaincode
final paymentCode = PaymentCode.fromBip32Node(
node,
networkType: bitcoin,
shouldSetSegwitBit: false,
);

print("payment code: $paymentCode");
Expand Down
9 changes: 4 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ version: 2.0.0
# homepage: https://www.example.com

environment:
sdk: '>=2.18.5 <3.0.0'

sdk: '>=3.0.0 <4.0.0'

dev_dependencies:
lints: ^2.0.0
Expand All @@ -15,11 +14,11 @@ dependencies:
bitcoindart:
git:
url: https://github.com/cypherstack/bitcoindart.git
ref: 004d6f82dff7389b561e5078b4649adcd2d9c10f
ref: 6136230e660fd1f681d18c75d38ca7de4d81187c
bip39:
git:
url: https://github.com/cypherstack/stack-bip39.git
ref: 3bef5acc21340f3cc78df0ad1dce5868a3ed68a5
ref: 787814bfea1af30ecf9d90c2c416846def1801f1
pointycastle: ^3.6.2
convert: ^3.0.2
bip32: ^2.0.0
Expand All @@ -32,4 +31,4 @@ dependency_overrides:
bip39:
git:
url: https://github.com/cypherstack/stack-bip39.git
ref: 3bef5acc21340f3cc78df0ad1dce5868a3ed68a5
ref: 787814bfea1af30ecf9d90c2c416846def1801f1

0 comments on commit d961b86

Please sign in to comment.