Flow

F

Flow

This Discord is for the Flow Blockchain, the blockchain for powerful, secure, and scalable Web3 Apps.

Join

developer-forums

💬│general

🛠│developer-questions

📖│getting-started

🤝│hybrid-custody

📱│flow-mobile

Vishal | Flow (2024-09-06)

how do I create a new account on flow mainnet (I lost the keys to my test account)? Flow cli fails.. $ flow accounts create Enter an account name: test âś” Mainnet...

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

is there any example of how to pass account keys to a transaction in go? previously the was something like ```go flow.NewTransaction(). SetScript(script)....

joshua | Flow (2024-08-16)

I'm updating my go dependencies in the smart contract repos to the latest versions of CLI, emulator, etc and I am getting these errors about certain packages not being in GOROOT: https://github.com/onflow/flow-nft/actions/runs/10423176095/job/28869316822?pr=230 Anyone know what that means?...

Bohao | Flow (2024-08-16)

[C1.0] Is it possible to have a safe way (no panic) to check if the resource is upgraded? ``` // I have an arbitrary StoragePath here, and I can also get a corresponding Type. let unsafeType = account.storage.type(at: path) // No problem for this line....

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)...

Giovanni S | Flow (2024-08-05)

When using flow-go-sdk, is there a way to pass the local flow.json as config for import aliasing or does aliasing need to be implemented by the dependent app?

Giovanni S | Flow (2024-07-25)

Question about block time once block production resumes post-Crescendo - will the onchain time delta between pre- and post-Crescendo blocks reflect the offchain time spanned during migration?

Giovanni S | Flow (2024-07-25)

I'm getting some weird errors running a load<@AnyResource> in the latest pre-release CLI 🧵

Navid | Flow 4D (2024-07-11)

Is there any way to destroy an account and claim all it's FLOW (including minimum storage deposit)? Let's assume this is a standard Parent/Child relationship and the parent wants to destroy the child account. I found this transaction: https://github.com/onflow/hybrid-custody/blob/main/transactions/hybrid-custody/destroy_child.cdc but this seems to only destroy the associated resource. No tokens are redeemed....

joshua | Flow (2024-07-09)

I'm looking to add some pre and post conditions to the generic FT and NFT transactions that we include in Ledger and encourage other projects to use to make them safer. Anyone have any suggestions for what we can include besides what I have listed in the issues? https://github.com/onflow/flow-ft/issues/162 https://github.com/onflow/flow-nft/issues/222...

Navid | Flow 4D (2024-07-02)

I'm planning to analyze all accounts to check for a certain stored object. To put it in another way, I'm trying to take a snapshot of all holders of an asset on Cadence side. The normal way I would do this is to iterate through all accounts (account 0, account 1, etc) and run a batched script to fetch the data I need from an AN. Given the number of accounts on mainnet, this might be inefficient. Is there an easy way to do the same thing locally using a state snapshot? Any docs or examples are appreciated....

Giovanni S | Flow (2024-06-27)

I'm running to an issue running accessing a contract value in a Crescendo transaction - 9900f1b3e3d1c2ac98b4d70662b6e24506dc7ef745854f5467da1eeca4bae52f I need to access the dereferenced EVMAddress value in order to encode it. I also tried dereferencing in e971eb7ebfb42f2774032c98bb4be710626fb1cd8c838667af42b30a0d6e8cfb with * operator but I'm getting an error ```...

Bohao | Flow (2024-06-25)

[C1.0] What is the best practice to use Array in a view function? if I want to use append in the view function (which is valid before C1.0), it hints :Impure operation performed in view context Therefore, some methods have to remove the "view" keyword....

Vishal | Flow (2024-06-22)

can someone help me understand why this transaction failed? https://previewnet.flowdiver.io/tx/7dab77a9a99483388ed83fe5c51ed81c17d1e1da90913bef5d03480053feb399 That AuthAccount is implicitly available, no?...

joshua | Flow (2024-06-10)

Am I able to create key pairs and sign "off-chain" data in the Cadence testing framework? I don't see anything in the crypto contract or the docs about it