Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify failing token create from template with custom fees #513

Open
michielmulders opened this issue Nov 7, 2024 · 0 comments
Open

Verify failing token create from template with custom fees #513

michielmulders opened this issue Nov 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@michielmulders
Copy link
Member

michielmulders commented Nov 7, 2024

Description

When adding custom fees to the token create command using templates, it fails when setting custom fees.

Steps to reproduce

Make sure to first create the accounts for Alice and Bob on the right network before creating the token. The token create command from template works without setting custom fees.

Here's an example template file I've used called token.template.json:

{
    "name": "myToken",
    "symbol": "MTK",
    "decimals": 2,
    "supplyType": "finite",
    "initialSupply": 1000,
    "maxSupply": 1000000,
    "keys": {
      "supplyKey": "<alias:bob>",
      "treasuryKey": "<alias:alice>",
      "adminKey": "<newkey:ecdsa:10000>",
      "feeScheduleKey": "",
      "freezeKey": "",
      "wipeKey": "",
      "pauseKey": "",
      "kycKey": ""
    },
    "customFees": [
      {
        "amount": 1,
        "unitType": "token",
        "denom": "0.0.3609946",
        "type": "fixed",
        "exempt": true,
        "collectorId": "0.0.1033"
      },
      {
        "type": "fractional",
        "numerator": 1,
        "denominator": 100,
        "min": 1,
        "exempt": true,
        "collectorId": "0.0.1033"
      }
    ],
    "memo": "Test token"
}

Additional context

No response

Hedera network

other

Version

latest

Operating system

None

@michielmulders michielmulders added the bug Something isn't working label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant