-
Notifications
You must be signed in to change notification settings - Fork 448
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
Conversation
const isSendingBaseAssetId = useMemo(() => { | ||
return ( | ||
assetId && | ||
provider?.getBaseAssetId().toLowerCase() === assetId.toLowerCase() | ||
); | ||
}, [provider, assetId]); | ||
return assetId && baseAssetId?.toLowerCase() === assetId.toLowerCase(); | ||
}, [baseAssetId, assetId]); |
There was a problem hiding this comment.
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.
return ICON_MAP[OperationName.sent] as Icons; | ||
return ICON_MAP[OperationName.transfer] as Icons; |
There was a problem hiding this comment.
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
.
// 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, |
There was a problem hiding this comment.
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.
@petertonysmith94 thank you so much for your work, this will be finished on #1774 |
Summary
fuels
version to0.98.0
and address all breaking changes.