Skip to content

Commit

Permalink
Merge pull request #71 from kinnytips/fix-TransactionHash
Browse files Browse the repository at this point in the history
add toBase58
  • Loading branch information
mocolicious authored Dec 14, 2021
2 parents 3a55b12 + 40c666d commit 6d0c9c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/lib/base/models/transaction_hash.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:typed_data';

import 'package:kin_base/base/tools/base58.dart';
import 'package:kin_base/base/tools/extensions.dart';
import 'package:kin_base/base/tools/hex.dart';

Expand All @@ -11,6 +12,8 @@ class TransactionHash {
TransactionHash.fromHashString(String transactionHashString)
: this(HexDecoder().convert(transactionHashString));

String toBase58() => Base58().encode(this.rawValue);

@override
bool operator ==(Object other) =>
identical(this, other) ||
Expand Down

0 comments on commit 6d0c9c6

Please sign in to comment.