Upgrades coming to FT and NFT contracts to have better error messages

The Flow team has a tentative plan to upgrade the FT and NFT smart contracts on mainnet on Oct 1st, 2024. This is a non-breaking change and will only update the common error messages that are emitted from these contracts when something unexpected happens. More details about the change below.

Expected dates to get the changes in effect is as follows:

  • Testnet: Friday, September 26th

And assuming that the upgrades on testnet go well,

  • Mainnet: Tuesday, October 1st

This will give us enough time to make sure the upgrades are functioning properly on non-mainnet networks.

The changes to these contracts that will be used for the upgrade can be found in these pull requests:

Fungible Token Contracts:

Non-Fungible Token Contracts:

The changes are documented in the PRs and involve updates to all the major FT and NFT contracts.

The change is backward compatible for all code.

Note - We are open to changing the timeline if the community provides feedback on the suggested change.

Developers are also encouraged to review these changes and think about how thorough error messages like this can be integrated into their own contracts, transactions, and scripts. They are also encouraged to copy these new versions and replace them in their own repos and apps if they are using the same transactions that are updated there.

If you have any questions regarding these changes, please ask in the PR comments, on Discord in the #4d-ux-builders channel.

Contracts updated on Testnet:

0x9a0766d93b6608b7

  • FungibleToken
  • FungibleTokenMetadataViews
  • FungibleTokenSwitchboard

0x51ea0e37c27a1f1a

  • TokenForwarding

0x631e88ae7f1d7c20

  • NonFungibleToken
  • MetadataViews
1 Like

Contracts updated on Mainnet:

0xf233dcee88fe0abe

  • FungibleToken
  • FungibleTokenMetadataViews
  • FungibleTokenSwitchboard

0xe544175ee0461c4b

  • TokenForwarding

0x1d7e57aa55817448

  • NonFungibleToken
  • MetadataViews