diff --git a/src/Signing/TrezorSigner.php b/src/Signing/TrezorSigner.php index 70cd4b3..8f2c896 100644 --- a/src/Signing/TrezorSigner.php +++ b/src/Signing/TrezorSigner.php @@ -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)) );