Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.
This repository was archived by the owner on Aug 14, 2025. It is now read-only.

Faucet Fails to Retrieve Token Amounts Due to Improper Config Loading with defaultDenom #236

@kmlbgn

Description

@kmlbgn

Description:

When making a faucet claim request using the ukex token, the faucet fails to retrieve the faucet amount from the configuration. Despite ukex being properly defined in the default configuration, the config loading process seems to overwrite or clear the token mappings.

The issue arises in the way the configuration is being loaded via load.go. Specifically, the method replaces every instance of "ukex" using defaultDenom, and then clears the faucet's token mappings (FaucetAmounts, FaucetMinimumAmounts, and FeeAmounts), leaving them empty.

Error message:

2024/09/09 19:42:05 ERROR: [faucet] Failed to get faucet amount from the configuration

Relevant code locations:

Other relevant faucet (KIPs):

Expected Behaviour:

The faucet configuration should no longer delete "ukex" and simply use defaultDenom.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions