Skip to content
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

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

taco-paco
Copy link
Contributor

…ent scarb release

Copy link

vercel bot commented Jul 18, 2024

@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)
Copy link
Contributor

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.

Copy link
Contributor Author

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))
Copy link
Contributor

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 () {
Copy link
Contributor

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}`}` 

Copy link
Contributor Author

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.

@satyambnsal
Copy link
Contributor

Overall looks good. Few minor comments.

Copy link
Contributor

@varex83 varex83 left a comment

Choose a reason for hiding this comment

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

LGTM

@varex83
Copy link
Contributor

varex83 commented Jul 22, 2024

can you pull & merge develop into this branch please?

@varex83 varex83 merged commit 5eaea85 into NethermindEth:develop Jul 23, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants