Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

simulateTransaction now returns the correct error code if accounts are provided as input#21707

Merged
mvines merged 1 commit intosolana-labs:masterfrom
mvines:sim
Dec 8, 2021
Merged

simulateTransaction now returns the correct error code if accounts are provided as input#21707
mvines merged 1 commit intosolana-labs:masterfrom
mvines:sim

Conversation

@mvines
Copy link
Copy Markdown
Contributor

@mvines mvines commented Dec 8, 2021

An alternative to #21677

Fixes #21655

@mvines
Copy link
Copy Markdown
Contributor Author

mvines commented Dec 8, 2021

@zfedoran - hey want do you think about this version of your fix?

@zfedoran
Copy link
Copy Markdown

zfedoran commented Dec 8, 2021

@mvines looks like a more robust fix. The only concern I have is whether it is somehow possible for a post_simulation_account to exist without it also being listed in the transaction itself? Derived program address maybe?

@mvines
Copy link
Copy Markdown
Contributor Author

mvines commented Dec 8, 2021

The only concern I have is whether it is somehow possible for a post_simulation_account to exist without it also being listed in the transaction itself? Derived program address maybe?

Derived program addresses still need to be declared in a transaction for them to be accessible to the program, so I think we're ok here.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 8, 2021

Codecov Report

Merging #21707 (651103d) into master (923720f) will increase coverage by 0.0%.
The diff coverage is 94.4%.

@@           Coverage Diff           @@
##           master   #21707   +/-   ##
=======================================
  Coverage    81.6%    81.6%           
=======================================
  Files         511      511           
  Lines      143320   143325    +5     
=======================================
+ Hits       116963   116993   +30     
+ Misses      26357    26332   -25     

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

simulate_transaction: Too many accounts provided

2 participants