Open samsiegart opened 1 year ago
Design the Fix
There's a few ways that this could be handled:
...
- Write a different
makeImportContext
function just for dapps and put it inui-kit
.
I'm leaning that way, since I think the current makeImportContext
is not the way to go. In particular, I think when remotables are un-marshalled on the client side, they shouldn't know the board ID whence they came. The correspondence should be in a separate table.
My current thinking is in...
Agree on ui-kit approach.
Describe the bug
The dapps make use of
makeImportContext
fromsmart-wallet
to unmarshal serialized objects from vstorage, as well marshal them back when submitting transactions to the smart wallet. However, this util function throws when it encounters a null slot, which occurs in some inter protocol vstorage query results, breaking thefromCapData
function. To circumvent this, the dapps have been patching the util to allow null slots.Design the Fix
There's a few ways that this could be handled:
smart-wallet
smart-wallet
would not.makeImportContext
function just for dapps and put it inui-kit
. I'm not sure about this approach because it would be ideal for the contract and UI to be on the same page when it comes to serialization.cc @dckc and @turadg for input