Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miguilimzero committed Dec 20, 2024
1 parent 3e7ccef commit 3feb123
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
3 changes: 0 additions & 3 deletions tests/merchant-test.php

This file was deleted.

22 changes: 14 additions & 8 deletions tests/wallet-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@
require_once __DIR__ . '/../vendor/autoload.php';

use CryptoUnifier\Api\WalletAPI;
use GuzzleHttp\Exception\BadResponseException;
// use GuzzleHttp\Exception\BadResponseException;

$client = new WalletAPI('', '', 'trx');
$client = new WalletAPI(
baseUrl: '',
identifierKey: '',
secretKey: '==',
symbol: 'trx',
network: 'mainnet'
);

var_dump($client->getDepositAddresses());
var_dump($client->generateAddresses());

var_dump($client->getBalance());

try {
echo $client->sendTransaction(['DSMe7j5vVRgXRynJAACmjp8JQoFvJ7ud99' => 1])->message->txid;
} catch (BadResponseException $e) {
var_dump(json_decode($e->getResponse()->getBody()));
}
// try {
// echo $client->sendTransaction(['DSMe7j5vVRgXRynJAACmjp8JQoFvJ7ud99' => 1])->message->txid;
// } catch (BadResponseException $e) {
// var_dump(json_decode($e->getResponse()->getBody()));
// }

0 comments on commit 3feb123

Please sign in to comment.