For the handling of optional args, as long as you include the arg in your arguments it should work.
Do you have a "failed" transaction for me to look at?
the funny thing is, when i try to deploy the contract, im not sure if im hitting it, because once it deploys and i launch the react, it is still utilizing the egld instead of the token i though i was able to provide as an argument:
1) example:
erdpy contract deploy
Found extra arguments in erdpy.json. Final arguments: ['--verbose', 'contract', 'deploy', '--bytecode', 'output/ping-pong.wasm', '--recall-nonce', '--pem', '../../wallet/walletKey.pem', '--gas-limit', '59999999', '--arguments', '3000000000000000000', '100', '0x44414e472d313630626434', '--send', '--outfile', 'deploy-testnet.interaction.json']
INFO:accounts:Account.sync_nonce()
INFO:accounts:Account.sync_nonce() done: 17
INFO:cli.contracts:Contract address: erd1qqqqqqqqqqqqqpgq9vkf9r6c5nlmhqyrcd6ep4pttfaf4rgw6cyqjswz9t
INFO:utils:View this contract address in the Elrond Testnet Explorer: https://testnet-explorer.elrond.com/accounts/erd1qqqqqqqqqqqqqpgq9vkf9r6c5nlmhqyrcd6ep4pttfaf4rgw6cyqjswz9t
INFO:transactions:Transaction.send: nonce=17
INFO:transactions:Hash: c923b7c1de5c24c2125066f0f7c5f5f07afc4cc333cf481d8b1cd11dd017cb33
INFO:utils:View this transaction in the Elrond Testnet Explorer: https://testnet-explorer.elrond.com/transactions/c923b7c1de5c24c2125066f0f7c5f5f07afc4cc333cf481d8b1cd11dd017cb33
the funny thing is, when i try to deploy the contract, im not sure if im hitting it, because once it deploys and i launch the react, it is still utilizing the egld instead of the token i though i was able to provide as an argument: 1) example: erdpy contract deploy Found extra arguments in erdpy.json. Final arguments: ['--verbose', 'contract', 'deploy', '--bytecode', 'output/ping-pong.wasm', '--recall-nonce', '--pem', '../../wallet/walletKey.pem', '--gas-limit', '59999999', '--arguments', '3000000000000000000', '100', '0x44414e472d313630626434', '--send', '--outfile', 'deploy-testnet.interaction.json'] INFO:accounts:Account.sync_nonce() INFO:accounts:Account.sync_nonce() done: 17 INFO:cli.contracts:Contract address: erd1qqqqqqqqqqqqqpgq9vkf9r6c5nlmhqyrcd6ep4pttfaf4rgw6cyqjswz9t INFO:utils:View this contract address in the Elrond Testnet Explorer: https://testnet-explorer.elrond.com/accounts/erd1qqqqqqqqqqqqqpgq9vkf9r6c5nlmhqyrcd6ep4pttfaf4rgw6cyqjswz9t INFO:transactions:Transaction.send: nonce=17 INFO:transactions:Hash: c923b7c1de5c24c2125066f0f7c5f5f07afc4cc333cf481d8b1cd11dd017cb33 INFO:utils:View this transaction in the Elrond Testnet Explorer: https://testnet-explorer.elrond.com/transactions/c923b7c1de5c24c2125066f0f7c5f5f07afc4cc333cf481d8b1cd11dd017cb33