-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
Describe the bug
By adding a new field to an error variant, I get back an error Cannot find field hash _2102411630_ when using a version of the generated delcarations without the new variant.
To Reproduce
- Deploy canister with type
public type CreateInvoiceErr = {
message : ?Text;
kind : {
#BadSize;
#InvalidToken;
#InvalidAmount;
#InvalidDestination;
#InvalidDetails;
#MaxInvoicesReached;
#Other;
};
};
- Generate declarations
- Add type
#NotAuthorized; - Redeploy, and make call using prior declarations
Expected behavior
Agent JS should make the call without the most up to date interface
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels