Skip to content

fix abi generation #4

Description

@alonmuroch

for some reason abi generated like this

/// Call the transfer function
pub fn transfer(
&self,
caller: &Address,
args: &[u8],
) -> Option {
// Encode router call manually
let arg_len = args.len() as u8;
let mut encoded = [0u8; 256]; // Fixed buffer
encoded[0] = 0x02; // selector
encoded[1] = arg_len; // arg length
encoded[2..2 + arg_len as usize].copy_from_slice(args);
let data = &encoded[..2 + arg_len as usize];

    // Make the call
    call(caller, &self.address, data)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions