"Error": "API error: API error Error(InternalError): Failed to convert transaction data from storage #109
-
"Error": "API error: API error Error(InternalError):
Failed to convert transaction data from storage:
Module ModuleId {
address: <module-address>,
name: Identifier(\"<resource-name>\")
} can't be found" How to reproduce
Notes
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, looks like that bug applies. The first situation, you're creating a coin, which is not emitting a module event. The second situation, you're creating the coin, and adding liquidity. This likely is creating the issue when an event is created on transfer of coins. There are a couple bugs like this one around Otherwise, I'll usually add an |
Beta Was this translation helpful? Give feedback.
Yes, looks like that bug applies.
The first situation, you're creating a coin, which is not emitting a module event.
The second situation, you're creating the coin, and adding liquidity. This likely is creating the issue when an event is created on transfer of coins.
There are a couple bugs like this one around
init_module
, and usually when I write my own contracts, I'll avoid usinginit_module
. I'll only use it if it's simple enough.Otherwise, I'll usually add an
initialize()
function, and call that after publishing.