Skip to content

Conversation

@m00n620
Copy link
Contributor

@m00n620 m00n620 commented Aug 22, 2022

No description provided.

@m00n620 m00n620 requested review from dacf and pldespaigne August 22, 2022 13:53
@netlify
Copy link

netlify bot commented Aug 22, 2022

Deploy Preview for autonomy-station ready!

Name Link
🔨 Latest commit 40a50ec
🔍 Latest deploy log https://app.netlify.com/sites/autonomy-station/deploys/63038a5e2e27310008936732
😎 Deploy Preview https://deploy-preview-8--autonomy-station.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Aug 22, 2022

Deploy Preview for goofy-archimedes-7da566 failed.

Name Link
🔨 Latest commit 40a50ec
🔍 Latest deploy log https://app.netlify.com/sites/goofy-archimedes-7da566/deploys/63038a5e43dff90008ea6661

Comment on lines +65 to +69
const validAddress = /^0x[a-fA-F0-9]{40}$/.test(value);
if (!validAddress) {
setState(s => ({ ...s, contract: { ...s.contract, name: '', abi: undefined }, error: <>Invalid address!</> }));
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be useful to have this extracted into an helper function, so we could re-use that elsewhere 🤷

@dacf
Copy link
Contributor

dacf commented Aug 23, 2022

LGTM, need to finish testing then I will approve. Just next time split this updates a bit more in either more commits or more PR's please.

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.

4 participants