How to use the @0xcert/scaffold.FolderTransferState.DISABLED function in @0xcert/scaffold

To help you get started, we’ve selected a few @0xcert/scaffold examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 0xcert / framework / packages / 0xcert-web3-folder / src / queries / get-transfer-state.ts View on Github external
return folder.connector.query(async () => {
    const paused = await folder.contract.methods.isPaused().call();
    const state = paused ? FolderTransferState.DISABLED : FolderTransferState.ENABLED;

    return state;
  });
}