Skip to content

Commit

Permalink
Fixed setup error - 2.0.36
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel committed Jun 14, 2023
1 parent 92e17e5 commit 7feaada
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nft-maker/src/Services/SetupService.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function setApiKey($api_key) {
try {
$this->tatumConnector->setApiKey($api_key);
$api_key_resp = $this->tatumConnector->getApiVersion();
$isActive = $api_key_resp['status'] === 'ACTIVE' && $api_key_resp['expiration'] >= round(microtime(true) * 1000);
$isActive = $api_key_resp['expiration'] >= round(microtime(true) * 1000);
if (($api_key_resp['testnet'] === false && $api_key_resp['price'] !== 0 && $isActive) || ($api_key_resp['testnet'] === true && $isActive)) {
update_option(TATUM_SLUG . '_api_key', $api_key);
return [
Expand Down
2 changes: 1 addition & 1 deletion plugins/tatum/src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Description: NFT Maker is the easiest and fastest free plugin to work with NFTs without any blockchain development experience.
* Author: Lukas Kotol
* Author URI: https://t.me/LukasKotol
* Version: 2.0.35
* Version: 2.0.36
* Text Domain: tatum
* Domain Path: /languages
* License: MIT
Expand Down
2 changes: 2 additions & 0 deletions plugins/tatum/wordpress.org/README.wporg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ Added user agent header
= 2.0.35 =
Added user agent header - edit

= 2.0.36 =
Fixed setup API key error
== Upgrade Notice ==

= 1.0.0 =
Expand Down

0 comments on commit 7feaada

Please sign in to comment.