-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect address #67
Comments
@ahonn @ShookLyngs could you reply? |
Hi @GeraldoMarques1, thanks for your feedback. Spore-demo is integrated with JoyID through Omnilock for now, which means it follows the same approach as MetaMask. We plan to temporarily disable JoyID in the demo to avoid confusion. It will be re-added when we can fully support JoyID. |
@ahonn thanks for your response. |
You can refer to #69. ckb-dao-cobuild-poc's demo showcasing the management of DAO deposits through the use of a new transaction building protocol named Cobuild. In the poc demo, we have implemented the use of JoyID to manage DAO. You can management spores at same way. |
ok, got it. |
If you mean "get the lock script of a JoyID wallet address", you can use the import { helpers, config, Script } from '@ckb-lumos/lumos';
const joyIdWalletMainnetAddress = 'ckb...';
const lockScript: Script = helpers.parseAddress(joyIdWalletMainnetAddress, {
config: config.MAINNET,
});
console.log(lockScript); // { codeHash: ..., hashType: ..., args: ... } |
yes. so I tested. and lock is but when I mint spore using this address and lock with createSpore from 'spore-sdk/core', I have error. |
This is a JoyID lock address, and I assume that when you try to construct a transaction and include this address in the The cause of the error is that Lumos only collects capacity from known lock scripts (such as the default lock and the Omnilock). If you include a JoyID address in the As far as I know, the Lumos team is still working on supporting the JoyID lock, so a temp solution is to register a CustomLockScriptInfo in your dapp to handle capacity collection and witness-related fields for the JoyID lock script. However, it may present some difficulties. You can refer to the following example in Lumos on how to register a CustomLockScriptInfo : https://github.com/ckb-js/lumos/blob/ad483d9cb55ad38db9604fde456033b9513bc7f1/packages/common-scripts/examples/custom_lock_script_info/custom_lock_script_info.ts |
Looks like it :) for reference: ckb-js/lumos#640 |
I’m a developer and just looked your excellent demo site.
But I have one question.
When I connect wallet using joyid, it shows incorrect address.
I attached screenshot. first image is from https://testnet.joyid.dev/ and I think it’s correct address.
What’s the reason? And how to mint spore on nervous main net work with correct address?
Thanks.
The text was updated successfully, but these errors were encountered: