-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix: scarb checkout contracts for newer versions. Fix commit for current scarb commit #255
Conversation
@taco-paco is attempting to deploy a commit to the Starknet Remix Plugin Team on Vercel. A member of the Team first needs to authorize it. |
@@ -749,6 +749,7 @@ const Compilation: React.FC<CompilationProps> = ({ setAccordian }) => { | |||
// const get all values of allFiles object | |||
const allFilesValues = Object.values(allFiles) | |||
|
|||
console.log('allFiles', allFiles) |
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.
Seems unnecessarily, perhaps just remove it.
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.
Oops, thought removed it. Thanks, good catch
} | ||
} | ||
const checkVal = Object.values(allFilesValues[i])[0] | ||
console.log('checkVal', checkVal, allFilesValues[i], checkVal === '', checkVal === null, checkVal === undefined, isEmpty(checkVal)) |
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.
Seems unnecessarily, perhaps just remove it.
): Promise<Array<({ fileName: string, content: string, path: string } | null)>> { | ||
const apiUrl = `https://api.github.com/repos/${repository}/contents/${path}` | ||
const apiUrl = (function () { |
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.
Curious why this needs to be IIFE ?
can't we just do this
const apiUrl = `https://api.github.com/repos/${repository}/contents/${path}${ref === undefined ? '' : `?ref=${ref}`}`
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.
Just a preference. Can be anything. But I would leave it like this, other option looks a bit clumsy for me.
Overall looks good. Few minor comments. |
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.
LGTM
can you pull & merge develop into this branch please? |
…ent scarb release