-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add back check for access list factory. #1889
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
this is definitely NOT OK This:
Will break if we cannot search for a property in something that does not exist, fyi: You can simply, and safely, do as i suggested above
|
you really like to complicate @mariacarmina , not sure why :-) This:
Has exactly the same effect as my suggested change (bellow), except that you made you more complicate (2 checks instead of 1). Can't really understand why but anyway
|
I do not like to complicate @paulo-ocean :) but as I mentioned previously, the assignment is related to 'accessListFactory' -> so it is good practice to check as well if 'accessListFactory' is present in contractAddressesConfig, because not all the chains have accessListFactory key, because they are not confidential EVM. For me your check is incomplete, we surely need to check if contractAddressesConfig exists, but also if accessListFactory is present because that's what we want to assign. Please check https://github.com/oceanprotocol/contracts/blob/main/addresses/address.json and search 'AccessListFactory' and you'll see that only for oasis that key exists. |
its exactly the same @mariacarmina ... but keep your ideas, i know nothing, just trying to help |
Fixes # .
Changes proposed in this PR:
From this discussion #1868 (comment), I reopened the topic, that assignement does not check if the accessListFactory exists and throws this error for not EVM chains (for example in barge):
Error publishing asset: Cannot read properties of undefined (reading 'accessListFactory')