Skip to content

Commit

Permalink
style: resolve style guide violations
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsobries authored and actions-user committed Nov 12, 2024
1 parent 410e741 commit a6d0ebd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Transactions/Builder/AbstractTransactionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public function sign(string $passphrase): static
$keys = PrivateKey::fromPassphrase($passphrase);

$this->transaction->data['senderPublicKey'] = $keys->getPublicKey()->getHex();

$this->transaction = $this->transaction->sign($keys);

$this->transaction->data['id'] = $this->transaction->getId();

return $this;
Expand Down
1 change: 0 additions & 1 deletion src/Transactions/Deserializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use ArkEcosystem\Crypto\Transactions\Types\Vote;
use ArkEcosystem\Crypto\Utils\AbiDecoder;
use ArkEcosystem\Crypto\Utils\Address;
use BitWasp\Buffertools\Buffer;

class Deserializer
{
Expand Down
2 changes: 0 additions & 2 deletions src/Transactions/Types/AbstractTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
use BitWasp\Bitcoin\Crypto\EcAdapter\Key\PublicKeyInterface;
use BitWasp\Bitcoin\Crypto\EcAdapter\Signature\CompactSignatureInterface;
use BitWasp\Bitcoin\Crypto\Hash;
use BitWasp\Bitcoin\Key\Factory\PublicKeyFactory;
use BitWasp\Bitcoin\Signature\SignatureFactory;
use BitWasp\Buffertools\Buffer;
use BitWasp\Buffertools\BufferInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/TransactionHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function toHash(array $transaction, bool $skipSignature = false):
[], // accessList is unused
];

if (!$skipSignature) {
if (! $skipSignature) {
$signatureBuffer = hex2bin($transaction['signature']);

$r = substr($signatureBuffer, 0, 32);
Expand Down

0 comments on commit a6d0ebd

Please sign in to comment.