-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial code for chain id support (#510)
* Add initial code for chain id support * Add chain id for roll op too * Prettier pass * Fix some unit tests * format code * Factorize buffer to sign code * Update mock data with chain id * Update wallet example * Remove duplication * Refactor for code duplication * Add chainId to network * Remove chainId from ClientFactory ts-docs * Update web3-utils to 1.4.5 * Update packages/massa-web3/src/web3/accounts/Web3Account.ts Co-authored-by: Nathan Seva <thykof@protonmail.ch> * Update packages/massa-web3/src/web3/accounts/Web3Account.ts Co-authored-by: Nathan Seva <thykof@protonmail.ch> * Update packages/massa-web3/src/web3/accounts/Web3Account.ts Co-authored-by: Nathan Seva <thykof@protonmail.ch> --------- Co-authored-by: sydhds <sydhds@gmail.com> Co-authored-by: Nathan Seva <thykof@protonmail.ch> Co-authored-by: Senji888 <44082144+Ben-Rey@users.noreply.github.com>
- Loading branch information
1 parent
a59e35e
commit 6af7263
Showing
19 changed files
with
251 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,8 +69,9 @@ bundle.* | |
# docs files | ||
docs | ||
|
||
#.env files | ||
.env | ||
# IDE | ||
.idea | ||
|
||
# Misc | ||
.DS_Store | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export function getEnvVariable(key: string): string { | ||
const value = process.env[key]; | ||
if (!value) { | ||
throw new Error(`Missing ${key} in .env file`); | ||
} | ||
return value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.