Problems with TypeScript example: your_fungible_asset.ts #309
-
TL/DR: A couple examples of me trying to mint an FA and it not transferring. The issue appears to be related to that the store owner declined to allow ungated transfer. Can anyone advise how to solve that and allow mint deposits to work? ![]() Seems like I need to add I see an object holds an
just not clear how to integrate that into my module to allow ungated transfer. I don't see I tried generating a transfer ref and then
Here's the
I'm not quite understanding the connection between Before getting into my FACoin module, I tried the Expected output shown in docs:
My output when I followed the directions in the docs:
So apparently this may be a more general issue, if the TS test isn't completing the transfers either? I created a package with the FACoin example (code below for context). I published it on devnet under account Then I ran
Result was
When I look up the txn hash I do see an event happened, a deposit to store:
but the I tried it first without and then with the overrides commented out. Result appears to have been the same. Anyone else able to repro this and/or see whether I'm missing some step in the mint process? Thanks for any tips on how to get the FA to transfer successfully in these examples. The TS one is especially odd because I believe I followed the directions in the docs but still got a failure to transfer. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Stores are objects. Every object has its associated owner. You can see that the deposit actually did work successfully here. In the first scenario, it looks like you're trying to transfer the store itself. This is different from minting the assets. |
Beta Was this translation helpful? Give feedback.
I double checked the code and found this:
There are two
await
s. Can you fix that and try? It solved it for me. Also, make sure that your dependencies are all up to date (installation instructions in the docs).