-
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.
fix(solana): fix simulator side effect bug
If we create a simulator with an executor, on construction of that simulator, the sendAndConfirm function is overwritten with a no-op version. ``` executor := mcmsSolana.NewExecutor(s.SolanaClient, auth, encoder) simulator := mcmsSolana.NewSimulator(executor) simulator.SimulateSetRoot(....) executor.SetRoot(....) ????? This will not perform any transaction ``` This commit ensure a copy of executor is modified. Side note: i combined the e2e simulator test with the e2e executor test so we can simulate and perform the actual operation, not to mention we saved a bunch of setup. JIRA: https://smartcontract-it.atlassian.net/browse/DPA-1417
- Loading branch information
1 parent
f3545dd
commit 185145e
Showing
6 changed files
with
61 additions
and
119 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@smartcontractkit/mcms": patch | ||
--- | ||
|
||
fix(solana): fix simulator side effect bug |
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 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
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