Skip to content

clone returns different value if properties are defined in different order than type definition #110

@algofoundation

Description

@algofoundation

https://discord.com/channels/491256308461207573/1434790135345451098/1434790135345451098

Example:

@contract({ name: 'ContractOne' })
export class ContractOne extends Contract {
  receiver(appId: Application) {
    ...
  }
}

@contract({ name: 'ContractTwo' })
export class ContractTwo extends Contract {
test(appId: Application) {
// unknown contract error thrown here
const result = abiCall<typeof ContractOne.prototype.receiver>({ appId, args: [appId] })
return result.returnValue
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsynced

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions