You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cadence gets the contract names of an account by calling into FVM through the runtime.Interface.GetAccountContractNames function. It seems like FVM returns duplicates.
Current Behavior
account.contracts.names
may returns duplicate contract namesExpected Behavior
account.contracts.names
returns unique contract namesSteps To Reproduce
script:
command:
flow scripts execute ./scripts/get_contracts.cdc 0xf233dcee88fe0abe --network=mainnet
result:
["FungibleToken", "FungibleToken", "FungibleTokenMetadataViews", "FungibleTokenSwitchboard"]
There are two "FungibleToken"
Environment
The text was updated successfully, but these errors were encountered: