Skip to content

Commit

Permalink
TrezorSigner - update to use new arguments to trezorctl
Browse files Browse the repository at this point in the history
  • Loading branch information
zulucrypto committed Apr 4, 2018
1 parent b30dad9 commit e094d48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Signing/TrezorSigner.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ public function signTransaction(TransactionBuilder $builder)

$networkPassphrase = $builder->getApiClient()->getNetworkPassphrase();

$cmd = sprintf('%s stellar_sign_transaction -a %s -n %s %s',
$bip32Path = sprintf("m/44'/148'/%s'", $this->accountIndex);

$cmd = sprintf('%s stellar_sign_transaction --address %s -n %s %s',
$this->trezorBinPath,
escapeshellarg(($this->accountIndex + 1)),
escapeshellarg($bip32Path),
escapeshellarg($networkPassphrase),
escapeshellarg(base64_encode($xdr))
);
Expand Down

0 comments on commit e094d48

Please sign in to comment.