This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix the `ethereumjs-tx` import that was a breaking change of its `2.x` release * Update `ethereumjs-tx` mock
- Loading branch information
1 parent
a93543d
commit 8dec4f6
Showing
7 changed files
with
12 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
export const EthereumTx = jest.fn().mockImplementation(() => ({ | ||
export const Transaction = jest.fn().mockImplementation(() => ({ | ||
serialize: () => ({ | ||
toString: () => 'mocked-hex-string', | ||
toString: () => 'mocked-serialized-signed-transaction', | ||
}), | ||
})); | ||
|
||
export default EthereumTx; | ||
const EthereumJsTx = jest.fn(() => ({ Transaction })); | ||
|
||
export default EthereumJsTx; |
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