-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[explorer] Updates Owned Objects to match RPC Model #1678
Conversation
fungible objects should be aggregated (per previous discussion, default is aggregated view, and can expand by user action) |
@Andrew47 , According to the error in the screenshot, somehow you are calling the SDK function with an invalid id called Please Wait, therefore this error is expected. |
} | ||
|
||
function GetObjectsAPI({ id }: { id: string }) { | ||
const [objects, setObjects] = useState([{ objectId: 'Please Wait' }]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import type { ObjectRef } from 'sui.js';
const [objects, setObjects] = useState([{ objectId: 'Please Wait' }]); | |
const [objects, setObjects] = useState<ObjectRef[]>([]); |
This will help you get rid of the error
ae467b0
to
52e6248
Compare
Merging this to main now and will address the comments in separate PRs |
Co-authored-by: Chris Li <666lcz@gmail.com>
Co-authored-by: Chris Li <666lcz@gmail.com>
This updates the Owned Objects Component such that the Address Results now display owned objects:
Note that comprehensive testing is inhibited by apparent errors in the API.