# 🏄🏻‍♀️ Cadence

**URL:** https://forum.flow.com/c/builders/cadence/9.md?page=2

[Latest](https://forum.flow.com/latest.md) · [Categories](https://forum.flow.com/categories.md) · [Tags](https://forum.flow.com/tags.md)

**Page:** 3

---

## [Sell kittyItems transaction failed](https://forum.flow.com/t/sell-kittyitems-transaction-failed/2470)

<div class="topic-metadata">

**Author:** [@sylv1un](https://forum.flow.com/u/sylv1un)\
**Replies:** 8\
**Last updated:** [January 14, 2022, 6:37pm UTC](https://forum.flow.com/t/sell-kittyitems-transaction-failed/2470 "2022-01-14T18:37:07Z")

</div>

Hi, I run the kittyItems project (https://github.com/onflow/kitty-items) on flow emulator, I deployed all the contracts on “account-emulator” and I created another account on which I setup a vault fusd, I minted fusd on…

---

## [Moving a Ethereum mainnet NFT project into FLOW](https://forum.flow.com/t/moving-a-ethereum-mainnet-nft-project-into-flow/2659)

<div class="topic-metadata">

**Author:** [@Otium](https://forum.flow.com/u/Otium)\
**Replies:** 2\
**Last updated:** [January 3, 2022, 5:06pm UTC](https://forum.flow.com/t/moving-a-ethereum-mainnet-nft-project-into-flow/2659 "2022-01-03T17:06:00Z")

</div>

Is there a way or case studies of NFT projects moving from ETH into Flow?

---

## [Timestamp to date](https://forum.flow.com/t/timestamp-to-date/2662)

<div class="topic-metadata">

**Author:** [@beppeben](https://forum.flow.com/u/beppeben)\
**Replies:** 1\
**Last updated:** [December 30, 2021, 7:44am UTC](https://forum.flow.com/t/timestamp-to-date/2662 "2021-12-30T07:44:16Z")

</div>

Hi, is there any function that can be used to convert the Flow timestamp to an actual date, like dd-mm-yyyy?

---

## [Transaction Error execution error code 1101: \[Error Code: 1101\] cadence runtime error Execution failed:](https://forum.flow.com/t/transaction-error-execution-error-code-1101-error-code-1101-cadence-runtime-error-execution-failed/2133)

<div class="topic-metadata">

**Author:** [@buzz](https://forum.flow.com/u/buzz)\
**Replies:** 2\
**Last updated:** [December 10, 2021, 9:36am UTC](https://forum.flow.com/t/transaction-error-execution-error-code-1101-error-code-1101-cadence-runtime-error-execution-failed/2133 "2021-12-10T09:36:46Z")

</div>

This is the transaction code which will be used to list item in market import PinataPartyContract from 0xf8d6e0586b0a20c7 import PinnieToken from 0xf8d6e0586b0a20c7 import MarketplaceContract from 0xf8d6e0586b0a20c7 tr…

---

## [New Cadence FLIP for restricting field mutation](https://forum.flow.com/t/new-cadence-flip-for-restricting-field-mutation/2571)

<div class="topic-metadata">

**Author:** [@sainati](https://forum.flow.com/u/sainati)\
**Replies:** 0\
**Last updated:** [November 29, 2021, 7:41pm UTC](https://forum.flow.com/t/new-cadence-flip-for-restricting-field-mutation/2571 "2021-11-29T19:41:02Z")

</div>

Hi Community, I have proposed a FLIP (https://github.com/onflow/flow/pull/703) that would address a common footgun developers run into when using Cadence: accidentally exposing state and fields from contracts or objects…

---

## [The emulator can run normally, but an error is reported in testnet](https://forum.flow.com/t/the-emulator-can-run-normally-but-an-error-is-reported-in-testnet/2548)

<div class="topic-metadata">

**Author:** [@ben1](https://forum.flow.com/u/ben1)\
**Replies:** 2\
**Last updated:** [November 24, 2021, 2:31am UTC](https://forum.flow.com/t/the-emulator-can-run-normally-but-an-error-is-reported-in-testnet/2548 "2021-11-24T02:31:19Z")

</div>

I have a piece of code that can run normally in the emulator, but an error is reported in testnet pub resource somename{ destroy () { emit completed( address: self.owner?.address! …

---

## [My transaction is never SEALED(on testnet)](https://forum.flow.com/t/my-transaction-is-never-sealed-on-testnet/2511)

<div class="topic-metadata">

**Author:** [@newbdez33](https://forum.flow.com/u/newbdez33)\
**Replies:** 0\
**Last updated:** [November 3, 2021, 5:19am UTC](https://forum.flow.com/t/my-transaction-is-never-sealed-on-testnet/2511 "2021-11-03T05:19:24Z")

</div>

What should I do? the transaction stuck on await executing. https://testnet.flowscan.org/transaction/a777fc8925d28fbac8cccbd40de7f7b7e98b1f9a7c9c6cbad85803ff98336fb3

---

## ["raw private key is not valid"](https://forum.flow.com/t/raw-private-key-is-not-valid/1451)

<div class="topic-metadata">

**Author:** [@johnrobmiller](https://forum.flow.com/u/johnrobmiller)\
**Replies:** 1\
**Last updated:** [October 27, 2021, 9:19pm UTC](https://forum.flow.com/t/raw-private-key-is-not-valid/1451 "2021-10-27T21:19:09Z")

</div>

I’m learning about Cadence and block-chain technology, which is fun and new for me, but I keep on running into this error when trying to do things with the Flow emulator in the Flow-CLI. Here are a few of the commands I…

---

## [Get property from resource in collection](https://forum.flow.com/t/get-property-from-resource-in-collection/1846)

<div class="topic-metadata">

**Author:** [@kalitamih](https://forum.flow.com/u/kalitamih)\
**Replies:** 2\
**Last updated:** [October 23, 2021, 9:36pm UTC](https://forum.flow.com/t/get-property-from-resource-in-collection/1846 "2021-10-23T21:36:24Z")

</div>

Hi guys. I am learning cadence by tutorial. I have some misunderstanding in the 4th part (Non-Fungible Tokens). I want to add some extra information in NFT resource. I add some property “meta” in this resource and I cre…

---

## [Cannot deploy invalid contract](https://forum.flow.com/t/cannot-deploy-invalid-contract/2484)

<div class="topic-metadata">

**Author:** [@Sarath](https://forum.flow.com/u/Sarath)\
**Replies:** 1\
**Last updated:** [October 22, 2021, 11:44am UTC](https://forum.flow.com/t/cannot-deploy-invalid-contract/2484 "2021-10-22T11:44:09Z")

</div>

Hi, i try to deploy the bellow contract, but i am getting error transaction() { prepare(admin: AuthAccount) { let code: \[UInt8\] = “f845b8404d171ee5ee7303d91db44363d39230cef2ed8f6f48e15a10756458ffda0b6bddb232d05eb1b6a…

---

## [Error in Scope While Importing From Local File](https://forum.flow.com/t/error-in-scope-while-importing-from-local-file/1898)

<div class="topic-metadata">

**Author:** [@johnsmith1963](https://forum.flow.com/u/johnsmith1963)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 1:14pm UTC](https://forum.flow.com/t/error-in-scope-while-importing-from-local-file/1898 "2021-05-12T13:14:34Z")

</div>

Hey all - me and my team are new to flow - and having a bit of trouble with creating our own smart contracts. We are trying to follow along with the developer tutorial - but we are current stuck when trying to import a …

---

## [In https://github.com/onflow/flow-nft/ can not get NFT metadata](https://forum.flow.com/t/in-https-github-com-onflow-flow-nft-can-not-get-nft-metadata/2455)

<div class="topic-metadata">

**Author:** [@qifufu](https://forum.flow.com/u/qifufu)\
**Replies:** 1\
**Last updated:** [October 12, 2021, 7:54pm UTC](https://forum.flow.com/t/in-https-github-com-onflow-flow-nft-can-not-get-nft-metadata/2455 "2021-10-12T19:54:35Z")

</div>

value of type &NonFungibleToken.NFT has no member metadata. unknown member I can’t cast NonFungibleToken.NFT as ExampleToken.NFT mismatched types. expected &ExampleNFT.NFT, got &NonFungibleToken.NFT

---

## [A VSCode extension migration to Vim/NeoVim](https://forum.flow.com/t/a-vscode-extension-migration-to-vim-neovim/2408)

<div class="topic-metadata">

**Author:** [@Lucklyric](https://forum.flow.com/u/Lucklyric)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 6:32pm UTC](https://forum.flow.com/t/a-vscode-extension-migration-to-vim-neovim/2408 "2021-09-22T18:32:51Z")

</div>

Many members of our Dapp team are heavy Vim users, and we believe there will be a demand for vim support in the future, given the growing popularity of Flow and Cadence. We were starting to work on a vscode-cadence exten…

---

## [Casting Address field return nil](https://forum.flow.com/t/casting-address-field-return-nil/2375)

<div class="topic-metadata">

**Author:** [@saadtroon](https://forum.flow.com/u/saadtroon)\
**Replies:** 3\
**Last updated:** [September 14, 2021, 3:41pm UTC](https://forum.flow.com/t/casting-address-field-return-nil/2375 "2021-09-14T15:41:09Z")

</div>

I was trying to cast input in address field but it always return nil. Any help would be appreciated. transaction { prepare(acct: AuthAccount) {} execute { var someStruct: AnyStruct = 0x01 var address = someStruct a…

---

## [Contract storage layout](https://forum.flow.com/t/contract-storage-layout/2373)

<div class="topic-metadata">

**Author:** [@dryrunner](https://forum.flow.com/u/dryrunner)\
**Replies:** 2\
**Last updated:** [September 13, 2021, 8:52pm UTC](https://forum.flow.com/t/contract-storage-layout/2373 "2021-09-13T20:52:24Z")

</div>

For variables defined in the cadence contract, if they’re not explicitly save() to the storage path, where are they stored? For example the HelloWorld.cdc contract from the playground: access(all) contract HelloWorld { …

---

## [Is it possible to do an ecrecover() of an Ethereum address in a Cadence contract?](https://forum.flow.com/t/is-it-possible-to-do-an-ecrecover-of-an-ethereum-address-in-a-cadence-contract/684)

<div class="topic-metadata">

**Author:** [@dangerousfood](https://forum.flow.com/u/dangerousfood)\
**Replies:** 9\
**Last updated:** [September 10, 2021, 3:41pm UTC](https://forum.flow.com/t/is-it-possible-to-do-an-ecrecover-of-an-ethereum-address-in-a-cadence-contract/684 "2021-09-10T15:41:55Z")

</div>

Hi All, I am wanting to bind an Ethereum account using a resource. To do this I would like to sign some data using and Ethereum EOA. I then would like to validate the public key address that the data signed with the pr…

---

## [Cadence Contract Security Internal Review Checklist](https://forum.flow.com/t/cadence-contract-security-internal-review-checklist/2355)

<div class="topic-metadata">

**Author:** [@Ken](https://forum.flow.com/u/Ken)\
**Replies:** 0\
**Last updated:** [August 31, 2021, 4:01pm UTC](https://forum.flow.com/t/cadence-contract-security-internal-review-checklist/2355 "2021-08-31T16:01:49Z")

</div>

I started the internal security review checklist for Cadence. I would appreciate it greatly if you can take a look and give me some comments. Here is the link

---

## [Additional Abilities for Scripts](https://forum.flow.com/t/additional-abilities-for-scripts/677)

<div class="topic-metadata">

**Author:** [@dete](https://forum.flow.com/u/dete)\
**Replies:** 6\
**Last updated:** [August 31, 2021, 4:45am UTC](https://forum.flow.com/t/additional-abilities-for-scripts/677 "2021-08-31T04:45:29Z")

</div>

Right now, we more or less have two execution environments for Cadence (on the live network, not counting playground/emulator). We have the smart contract and transaction environment used to update the chain, and we have…

---

## [Encrypt data to anyone other than owner?](https://forum.flow.com/t/encrypt-data-to-anyone-other-than-owner/2322)

<div class="topic-metadata">

**Author:** [@Linenoise](https://forum.flow.com/u/Linenoise)\
**Replies:** 1\
**Last updated:** [August 25, 2021, 5:07pm UTC](https://forum.flow.com/t/encrypt-data-to-anyone-other-than-owner/2322 "2021-08-25T17:07:41Z")

</div>

New to flow and enjoying exploring the possibilities. Is there any way to store data in an NFT that can only be decrypted by the owner? Trying to avoid methods involving off block calls or required communication betwee…

---

## [How to get buyer address in a flow market purchase](https://forum.flow.com/t/how-to-get-buyer-address-in-a-flow-market-purchase/2167)

<div class="topic-metadata">

**Author:** [@quantum-guy7](https://forum.flow.com/u/quantum-guy7)\
**Replies:** 6\
**Last updated:** [August 25, 2021, 9:30am UTC](https://forum.flow.com/t/how-to-get-buyer-address-in-a-flow-market-purchase/2167 "2021-08-25T09:30:44Z")

</div>

Hi all. My question to you folks is: How do you determine the buyer (toAddress) when a moment is purchased?? I went through this contract link: https://flowscan.org/contract/A.c1e4f4f4c4257510.Market Any help is rea…

---

## [VIV3's Collectible NFTs ownership script](https://forum.flow.com/t/viv3s-collectible-nfts-ownership-script/2275)

<div class="topic-metadata">

**Author:** [@arthur\_spa](https://forum.flow.com/u/arthur_spa)\
**Replies:** 1\
**Last updated:** [August 18, 2021, 3:13pm UTC](https://forum.flow.com/t/viv3s-collectible-nfts-ownership-script/2275 "2021-08-18T15:13:02Z")

</div>

Hello everyone, I’m currently using the VIV3’s Collectible contract : https://flowscan.org/contract/A.37b92d1580b5c0b5.Collectible . I can now create Sets, Items and mint NFTs, but how can I see, with a script, which us…

---

## [NFT sales history](https://forum.flow.com/t/nft-sales-history/2259)

<div class="topic-metadata">

**Author:** [@arthur\_spa](https://forum.flow.com/u/arthur_spa)\
**Replies:** 2\
**Last updated:** [August 6, 2021, 1:45pm UTC](https://forum.flow.com/t/nft-sales-history/2259 "2021-08-06T13:45:01Z")

</div>

Hello ! I was wondering if there was a solution to store the transaction history of an NFT on the blockchain (with owner and price) ? Or if it was a bad idea and simply store it in a DB was a better solution. Thanks for…

---

## [Suggestion: Date Type](https://forum.flow.com/t/suggestion-date-type/2192)

<div class="topic-metadata">

**Author:** [@Creator](https://forum.flow.com/u/Creator)\
**Replies:** 2\
**Last updated:** [July 31, 2021, 10:45pm UTC](https://forum.flow.com/t/suggestion-date-type/2192 "2021-07-31T22:45:10Z")

</div>

Hi, I am trying to find solutions to avoid smartcontracts being manipulated by bots. I thought storing transaction execution date then, expected for a delay before according next transaction could be an option. Then I…

---

## [Suggestion: Default events](https://forum.flow.com/t/suggestion-default-events/2170)

<div class="topic-metadata">

**Author:** [@bluesign](https://forum.flow.com/u/bluesign)\
**Replies:** 2\
**Last updated:** [July 31, 2021, 6:12am UTC](https://forum.flow.com/t/suggestion-default-events/2170 "2021-07-31T06:12:59Z")

</div>

Currently events are not mandatory on resource creation or movement. It is up to contract developer to emit or not, even if they are defined in the contract. It would be nice to fire some default events, like: Resource…

---

## [Remove NFTMinter from storage](https://forum.flow.com/t/remove-nftminter-from-storage/2227)

<div class="topic-metadata">

**Author:** [@Goochy13](https://forum.flow.com/u/Goochy13)\
**Replies:** 1\
**Last updated:** [July 24, 2021, 12:01am UTC](https://forum.flow.com/t/remove-nftminter-from-storage/2227 "2021-07-24T00:01:03Z")

</div>

I made a test contract called “TestNFT” and saved an NFTMinter resource to /storage/NFTMinter (both emulator and Testnet). I then removed the contract but NFTMinter is still in /storage/NFTMinter. Is there any way to rem…

---

## [Dictionnary of Dictionnaries issue: {UInt32:{UInt32:String}}](https://forum.flow.com/t/dictionnary-of-dictionnaries-issue-uint32-uint32-string/2181)

<div class="topic-metadata">

**Author:** [@Creator](https://forum.flow.com/u/Creator)\
**Replies:** 6\
**Last updated:** [July 21, 2021, 3:51pm UTC](https://forum.flow.com/t/dictionnary-of-dictionnaries-issue-uint32-uint32-string/2181 "2021-07-21T15:51:19Z")

</div>

Using a dictionnary containing dictionnaries as values ex {UInt32:{UInt32:String}} may be quite harmful Please find the code below explaining the problem and a suggested solution pub fun main() { let dictionnary:…

---

## [Make NFTMinter resource publicly available to all users](https://forum.flow.com/t/make-nftminter-resource-publicly-available-to-all-users/2199)

<div class="topic-metadata">

**Author:** [@Kartik](https://forum.flow.com/u/Kartik)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 8:04am UTC](https://forum.flow.com/t/make-nftminter-resource-publicly-available-to-all-users/2199 "2021-07-21T08:04:44Z")

</div>

Hi all, I really need your help. I have an admin account on which the contract is deployed. It also stores the NFTMinter Resource in its storage. However, I want to borrow this minting capability for all other users i.e.…

---

## [Check out our new YouTube series! Hello World Walkthrough on Flow Playground](https://forum.flow.com/t/check-out-our-new-youtube-series-hello-world-walkthrough-on-flow-playground/2216)

<div class="topic-metadata">

**Author:** [@kimcodeashian](https://forum.flow.com/u/kimcodeashian)\
**Replies:** 0\
**Last updated:** [July 21, 2021, 1:31am UTC](https://forum.flow.com/t/check-out-our-new-youtube-series-hello-world-walkthrough-on-flow-playground/2216 "2021-07-21T01:31:15Z")

</div>

Check out our new YouTube series! Beginner-friendly videos on Cadence, the smart contract language on Flow. My goal is to improve the developer onboarding experience & create/provide a lot of helpful content to get you …

---

## [Failed to save object: path /storage/NFTCollection in account 0XXXXXX already stores an object](https://forum.flow.com/t/failed-to-save-object-path-storage-nftcollection-in-account-0xxxxxx-already-stores-an-object/2179)

<div class="topic-metadata">

**Author:** [@Kartik](https://forum.flow.com/u/Kartik)\
**Replies:** 2\
**Last updated:** [July 20, 2021, 6:25am UTC](https://forum.flow.com/t/failed-to-save-object-path-storage-nftcollection-in-account-0xxxxxx-already-stores-an-object/2179 "2021-07-20T06:25:25Z")

</div>

Hello everyone, I once deployed the PinataPartyContract on my testnet account then I removed that contract. When I again tried to deploy the same contract, I got this error : failed to save object: path /storage/NFTColl…

---

## [Storing Data Hash on Flow](https://forum.flow.com/t/storing-data-hash-on-flow/2159)

<div class="topic-metadata">

**Author:** [@ahmad](https://forum.flow.com/u/ahmad)\
**Replies:** 9\
**Last updated:** [July 18, 2021, 3:08pm UTC](https://forum.flow.com/t/storing-data-hash-on-flow/2159 "2021-07-18T15:08:59Z")

</div>

Hi Flowmates, I need to develop an application that gets a simple block of data as input, hash it and store the hash on flow. I would be grateful if someone helps me know how I should proceed with the above-mentioned p…

[Previous page](https://forum.flow.com/c/builders/cadence/9.md?page=1)

[Next page](https://forum.flow.com/c/builders/cadence/9.md?page=3)
