F
Flow7mo ago
NiAlexSan

Alex Ni | Flow 4D (2024-08-15)

did anyone encounter this error? [Error Code: 1101] cadence runtime error: %!v(PANIC=Error method: runtime error: index out of range [9] with length 9) It happens on these calls for come vaults:
let vault = acct.storage.borrow<&{FungibleToken.Vault}>(from: path)
let displayType = Type<FungibleTokenMetadataViews.FTDisplay>()
let dataType = Type<FungibleTokenMetadataViews.FTVaultData>()

// panics here
let display = vault.resolveView(displayType) as! FungibleTokenMetadataViews.FTDisplay?
let data = vault.resolveView(dataType) as! FungibleTokenMetadataViews.FTVaultData?
let vault = acct.storage.borrow<&{FungibleToken.Vault}>(from: path)
let displayType = Type<FungibleTokenMetadataViews.FTDisplay>()
let dataType = Type<FungibleTokenMetadataViews.FTVaultData>()

// panics here
let display = vault.resolveView(displayType) as! FungibleTokenMetadataViews.FTDisplay?
let data = vault.resolveView(dataType) as! FungibleTokenMetadataViews.FTVaultData?
6 Replies
Needle
Needle7mo ago
I've created a thread for your message. Please continue any relevant discussion in this thread. You can rename this thread using /title <new title> If this is a technical question that others may benefit from, considering also asking it on Stackoverflow: https://stackoverflow.com/questions/ask?tags=onflow-cadence
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
NiAlexSan
NiAlexSanOP7mo ago
the user is 0xbec12e53f2772fbc and path is usdcFlowVault probably it's related to the new fiat token vault
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
NiAlexSan
NiAlexSanOP7mo ago
sorry, I mean wrapped fiat token
joshua
joshua7mo ago
We think he was accidentally using the old USDCFlow address so he is testing it with the new one

Did you find this page helpful?