Skip to content

The plugin declares deprecated move syntax and package format. #1

@Santalov

Description

@Santalov

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:

  1. Module declarations
module conventions::wallet;

public struct Wallet has key, store {
   id: UID,
   amount: u64
}
  1. Method syntax
v.push_back(c.value());
  1. Index syntax
*&mut v[i] = v[j];
  1. 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};
  1. Be aware about Published.toml files 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions