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

chore: bumped fuels version to 0.98.0 #1766

Closed
wants to merge 6 commits into from

Conversation

petertonysmith94
Copy link

@petertonysmith94 petertonysmith94 commented Jan 13, 2025

Summary

Comment on lines 65 to +67
const isSendingBaseAssetId = useMemo(() => {
return (
assetId &&
provider?.getBaseAssetId().toLowerCase() === assetId.toLowerCase()
);
}, [provider, assetId]);
return assetId && baseAssetId?.toLowerCase() === assetId.toLowerCase();
}, [baseAssetId, assetId]);
Copy link
Author

Choose a reason for hiding this comment

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

The getBaseAssetId method is now asynchronous, so I have added as state element and a useEffect to load this.

Wasn't 100% on this change, would be good to validate this.

Comment on lines -23 to +20
return ICON_MAP[OperationName.sent] as Icons;
return ICON_MAP[OperationName.transfer] as Icons;
Copy link
Author

Choose a reason for hiding this comment

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

OperationName.sent has been removed.

OperationName.transfer and OperationName.sent have the same icon, therefore just use OperationName.transfer.

Comment on lines -317 to +320
// We need to forward bech32 addresses to the popup, regardless if we receive a b256 here
// our database is storing fuel addresses
const bech32Address = Address.fromDynamicInput(address).toString();
const b256Address = Address.fromDynamicInput(address).toString();

const signedMessage = await popupService.sendTransaction({
address: bech32Address,
address: b256Address,
Copy link
Author

Choose a reason for hiding this comment

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

We have removed the bech32 address.

From this comment, it appears we store bech32 in the database? Would be good to validate this.

@LuizAsFight
Copy link
Contributor

@petertonysmith94 thank you so much for your work, this will be finished on #1774

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.

2 participants