-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
The plugin declares deprecated move syntax and package format which causes AI to write the fresh code in a deprecated manner. It involves both the skill declaration https://github.com/0x-j/sui-stack-claude-code-plugin/blob/main/skills/sui-move-development/SKILL.md and examples https://github.com/0x-j/sui-stack-claude-code-plugin/blob/main/skills/sui-move-development/examples/capability-pattern.move
I suggest that examples should follow latest MySten recommendations:
- Module declarations
module conventions::wallet;
public struct Wallet has key, store {
id: UID,
amount: u64
}- Method syntax
v.push_back(c.value());- Index syntax
*&mut v[i] = v[j];- Consider that these declarations are automatically included in every module
use std::vector;
use std::option::{Self, Option};
use sui::object::{Self, ID, UID};
use sui::transfer;
use sui::tx_context::{Self, TxContext};- Be aware about
Published.tomlfiles https://docs.sui.io/guides/developer/packages/move-package-management
Reference https://docs.sui.io/concepts/sui-move-concepts/move-2024-migration https://docs.sui.io/concepts/sui-move-concepts/conventions https://docs.sui.io/guides/developer/packages/move-package-management
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels