forked from FuelLabs/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow signing forc-client transactions without prompting (FuelLabs#3075)
We do not sign transactions while running the E2E tests, causing them to have similar IDs and collide. Some randomness could be inserted to prevent this, but signing the transactions already achieve the same result. The only way `forc-client` could do signing was through stdio prompts, so support for signing with a provided key was also needed. This PR: - Moves tx related code used in `forc-client`'s `run` and `deploy` commands into `tx_util.rs`. - Adds support for signing transactions with a provided `SecretKey` instead of prompting stdio. - Signs transactions using `fuel-core`'s built-in key while testing.
- Loading branch information
Showing
10 changed files
with
265 additions
and
356 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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
pub mod deploy; | ||
pub mod parameters; | ||
pub mod run; | ||
pub mod tx_util; |
This file was deleted.
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
Oops, something went wrong.