Skip to content

Commit

Permalink
made SLP address prefix optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekliptor committed Jan 20, 2021
1 parent 4dd89f3 commit 38e5061
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BlockchainApi/Structs/BchAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public function __construct(string $cashAddress, string $legacyAddress = '', str
$cashAddress = 'bitcoincash:' . $cashAddress;
$this->cashAddress = $cashAddress;
$this->legacyAddress = $legacyAddress;
if (substr($slpAddress, 0, 13) !== 'simpleledger:')
$slpAddress = 'simpleledger:' . $slpAddress;
$this->slpAddress = $slpAddress;
}

Expand Down

0 comments on commit 38e5061

Please sign in to comment.