Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return folder.connector.query(async () => {
const paused = await folder.contract.methods.isPaused().call();
const state = paused ? FolderTransferState.DISABLED : FolderTransferState.ENABLED;
return state;
});
}