Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default async function(folder: Folder, state: FolderTransferState) {
const from = folder.connector.makerId;
const paused = state !== FolderTransferState.ENABLED;
return folder.connector.mutate(() => {
return folder.contract.methods.setPause(paused).send({ from });
});
}