Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PubkeyError for ProgramError #10748

Merged
merged 1 commit into from
Jun 23, 2020

Conversation

jackcmay
Copy link
Contributor

Problem

Cross-program invocations may (probably will) include generating program addresses but there is no clear way to return a PubkeyError in a program

Summary of Changes

Add impl From<PubkeyError> for ProgramError

Fixes #

@codecov
Copy link

codecov bot commented Jun 23, 2020

Codecov Report

Merging #10748 into master will decrease coverage by 0.0%.
The diff coverage is 0.0%.

@@            Coverage Diff            @@
##           master   #10748     +/-   ##
=========================================
- Coverage    81.8%    81.8%   -0.1%     
=========================================
  Files         302      302             
  Lines       70799    70808      +9     
=========================================
- Hits        57934    57928      -6     
- Misses      12865    12880     +15     

@jackcmay jackcmay requested a review from aeyakovenko June 23, 2020 17:37
@jackcmay jackcmay merged commit db4a18a into solana-labs:master Jun 23, 2020
@jackcmay jackcmay deleted the pubkeyerror_for_programerror branch June 23, 2020 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants