Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Fix/2549 creating spending limit is trying to add the module again #2559

Conversation

juampibermani
Copy link
Contributor

@juampibermani juampibermani commented Jul 19, 2021

Closing since we are choosing a different approach

@github-actions
Copy link

CLA Assistant Lite All Contributors have signed the CLA.

@github-actions
Copy link

github-actions bot commented Jul 19, 2021

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 3 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@github-actions
Copy link

@github-actions
Copy link

@github-actions
Copy link

@github-actions
Copy link

@francovenica
Copy link
Contributor

francovenica commented Jul 19, 2021

I gave this ticket a look now since Juan Pablo told me is testable.

The main issue of not being able to add a new allowance with the module enabled and not any other allowance created was fixed
Tested also deleting the module and create a new allowance that re enables it. For last I sure made sure you can create an allowance and use it with the owner

It looks good

}
const safeInfoModules = (remoteSafeInfo.modules || []).map(({ value }) => value)

if (safeInfoModules.length) {
safeInfo.modules = buildModulesLinkedList(safeInfoModules)
safeInfo.spendingLimitEnabled =
safeInfoModules?.some((module) => sameAddress(module, SPENDING_LIMIT_MODULE_ADDRESS)) ?? false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need optional chaining here because you already check the length property on line 80.

address: safeAddress = '',
spendingLimits,
currentVersion: safeVersion = '',
spendingLimitEnabled: isSpendingLimitEnabled = false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need to rename the variable?

@juampibermani
Copy link
Contributor Author

Closing since we are choosing a different approach

@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 2021
@dasanra dasanra deleted the fix/2549-creating-spending-limit-is-trying-to-add-the-module-again branch July 26, 2021 07:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants