Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsANameToo committed Dec 19, 2024
1 parent 9c5dc9d commit 95238fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/Transactions/Builder/MultipaymentBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public function __construct(?array $data = null)

public function pay(string $address, string $amount): self
{
// TODO: validate amount and address?
$this->transaction->data['pay'][0][] = $address;
$this->transaction->data['pay'][1][] = $amount;

Expand Down
3 changes: 2 additions & 1 deletion src/Transactions/Types/ValidatorRegistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace ArkEcosystem\Crypto\Transactions\Types;

use ArkEcosystem\Crypto\Enums\AbiFunction;
use ArkEcosystem\Crypto\Helpers;
use ArkEcosystem\Crypto\Utils\AbiEncoder;

class ValidatorRegistration extends AbstractTransaction
Expand All @@ -14,7 +15,7 @@ public function __construct(?array $data = [])
$payload = $this->decodePayload($data);

if ($payload !== null) {
$data['validatorPublicKey'] = ltrim($payload['args'][0], '0x');
$data['validatorPublicKey'] = Helpers::removeLeadingHexZero($payload['args'][0]);
}

parent::__construct($data);
Expand Down
6 changes: 0 additions & 6 deletions tests/Unit/Transactions/Builder/MultipaymentBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ public function it_should_handle_single_recipient()
$this->assertTrue($builder->verify());
}

// /** @test */
// public function it_should_handle_sending_to_self()
// {

// }

/** @test */
public function it_should_handle_empty_payment()
{
Expand Down

0 comments on commit 95238fa

Please sign in to comment.