Repository navigation
v4.6.0 - Cleanup release + policy wallet generation fix
·
8 commits
to master
since this release
Cleanup release. No schema changes and no behaviour changes for customers or
operators, plus one real bug fix that surfaced while verifying the cleanup.
Fixed
- Generating a policy wallet could fatal with
Class "Ed25519Compat" not found.
CardanoWalletPHP.phpguarded itself with a class-exists check placed before
its ownrequire_onceof the Ed25519 compat layer. PHP binds the class at compile
time, so the guard was already true when the file ran and the require never
executed. It only worked when something earlier in the same request had loaded
the transaction signer (which loads the compat layer too). The require now comes
first. Verified on a live site: preprod and mainnet wallets generate with a
24-word mnemonic, addresses, and extended signing key.
Changed
- All server logging goes through
cardanomint_log()(includes/helpers/log.php).
Debug-level messages only reach the PHP error log whenWP_DEBUGis on or the
cardano_mint_debug_logfilter returns true; failure paths log at error level and
always appear. Four admin handlers that dumped the raw$_POSTbody to the log no
longer do. - Browser console noise is gated the same way.
cardano-nft-mint.jsroutes its
tracing throughcmDebug(), a no-op unlessWP_DEBUGis on (localized as
cardanoMint.debug).console.warn/console.errorare untouched. - The plugin entry file is a third of its old size. The Plugin Setup page, the
Mint Manager / Active Mints pages, the How to Use page, and the one-time
migrations moved verbatim intoincludes/admin/. Plugin paths resolve through
newCARDANO_MINT_PLUGIN_DIR/_URL/_FILEconstants;CARDANO_MINT_VERSION
is defined as well. CardanoCLIis now an honest 78-line facade over the pure-PHP signer and wallet
generator (its public signatures are unchanged).
Removed
includes/helpers/WalletGenerator.php: never referenced; its body was a placeholder.- The Deno-binary and Python fallbacks in
CardanoCLI, the activation-time "fix
binary permissions" step, and two address helpers keyed to the old binary's
output format. Neitherbin/norscripts/ship with the plugin, so none of
those paths could ever succeed; wallet generation and signing were already pure
PHP and still are. - The unreachable client-side address-conversion fallbacks (a Cardano Serialization
Library path nothing loads, and a placeholder that fabricated anaddr1…string).
If the server-side conversion fails, the raw address is passed through, which is
what the old chain ended up doing anyway. - The orphaned
cardano_get_connected_walletAJAX handler (the last CardanoPress
remnant) and the unauthenticated registration of the Anvil connectivity test
(cardano_test_anvil_apiis admin-only now; only Plugin Setup ever called it).
Install: upload cardano-easy-mint-4.6.0.zip via Plugins → Add New → Upload Plugin.