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

fix: mf-6133 get token balance on Conflux #11524

Merged
merged 1 commit into from Mar 26, 2024
Merged

Conversation

swkatmask
Copy link
Contributor

@swkatmask swkatmask added this to the 2.25.0 milestone Mar 26, 2024
@swkatmask swkatmask force-pushed the fix/mf-6133-conflux branch 4 times, most recently from b52dacc to 7893af2 Compare March 26, 2024 08:51
const entities: Array<[string, string]> = []

if (listOfAddress.some(isNativeTokenAddress)) {
entities.push([NATIVE_TOKEN_ADDRESS ?? '', await this.getBalance(options.account, options)])
}
const BALANCE_CHECKER_ADDRESS = getEthereumConstant(options.chainId, 'BALANCE_CHECKER_ADDRESS')
if (!BALANCE_CHECKER_ADDRESS) {
if (process.env.NODE_ENV === 'development') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could build it in those constant helpers

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It depends. Not all constant variables need to be checked.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. We can impl this if we need in the future.

@guanbinrui guanbinrui merged commit 05d8518 into develop Mar 26, 2024
14 checks passed
@guanbinrui guanbinrui deleted the fix/mf-6133-conflux branch March 26, 2024 16:32
guanbinrui added a commit that referenced this pull request Mar 27, 2024
Co-authored-by: Wukong Sun <158803171+swkatmask@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants