Skip to content

Commit

Permalink
Added small improvements & fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel committed Aug 20, 2021
1 parent 2b501a0 commit d872aab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/readme-update.yml

This file was deleted.

6 changes: 5 additions & 1 deletion admin/class-tatum-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ public function obtain_contract_address() {

public function change_post_columns($defaults) {
$defaults['status'] = 'Status';
$defaults['chain'] = 'Chain';
unset($defaults['date']);

return $defaults;
Expand All @@ -532,6 +533,9 @@ public function fill_custom_columns($column_name, $post_id) {
if ($column_name == 'status') {
echo $this->format_api_key_status(get_post_meta($post_id, 'status', true));
}
if ($column_name == 'chain') {
echo get_post_meta($post_id, 'chain', true);
}
}

public function format_api_key_status( $status ) {
Expand Down Expand Up @@ -736,7 +740,7 @@ public function mint_token($post, $new_status, $tatum_token_id, $tatum_url) {
}

if (!isset($tatum_url) || $tatum_url === '' || filter_var($tatum_url, FILTER_VALIDATE_URL) === false) {
return $this->add_flash_notice('URL Metadata of your NFT token should be valid ULR!', "error");
return $this->add_flash_notice('URL Metadata of your NFT token should be valid URL!', "error");
}

$active_key = $this->get_active_api_key();
Expand Down

0 comments on commit d872aab

Please sign in to comment.