UNPKG

@dfinity/sns

Version:

A library for interfacing with a Service Nervous System (SNS) project.

13 lines (12 loc) 569 B
/** * Identifies errors of method not being present in the canister. * * This is useful because SNS projects have different versions of SNS canisters. * Therefore, what works in the latest version might not work in the previous one. * * Error message example: "Call was rejected: * Request ID: 3a6ef904b35fd19721c95c3df2b0b00b8abefba7f0ad188f5c472809b772c914 * Reject code: 3 * Reject text: Canister 75ffu-oaaaa-aaaaa-aabbq-cai has no update method 'get_auto_finalization_status'" */ export declare const isMethodNotSupportedError: (err: unknown) => boolean;