Skip to content

fix: check optional environment variable as string before parsing into uint256#54

Merged
mdehoog merged 1 commit into
base:mainfrom
felipe-op:felipe/check-missing-env-as-string-first
Nov 14, 2023
Merged

fix: check optional environment variable as string before parsing into uint256#54
mdehoog merged 1 commit into
base:mainfrom
felipe-op:felipe/check-missing-env-as-string-first

Conversation

@felipe-op

Copy link
Copy Markdown
Contributor

I noticed when the env SAFE_NONCE was missing, the script failed because it couldn't convert an empty string("") into uint256.

This change checks the value of the env var before attempting to parse it.

@mdehoog mdehoog merged commit 3fae596 into base:main Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants