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

Unified signature for create_program_address #11460

Merged
merged 1 commit into from
Aug 10, 2020

Conversation

jackcmay
Copy link
Contributor

@jackcmay jackcmay commented Aug 7, 2020

Problem

Two different function signatures for create_program_address whether you are calling from program or not

Summary of Changes

Unify them

Fixes #

@codecov
Copy link

codecov bot commented Aug 8, 2020

Codecov Report

Merging #11460 into master will increase coverage by 0.0%.
The diff coverage is 62.5%.

@@           Coverage Diff           @@
##           master   #11460   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         323      321    -2     
  Lines       75545    75462   -83     
=======================================
- Hits        61897    61845   -52     
+ Misses      13648    13617   -31     

@jackcmay jackcmay merged commit 140b239 into solana-labs:master Aug 10, 2020
@jackcmay jackcmay added the v1.3 label Aug 10, 2020
@jackcmay jackcmay deleted the create-program-address-stub branch August 10, 2020 17:24
mergify bot pushed a commit that referenced this pull request Aug 10, 2020
mergify bot added a commit that referenced this pull request Aug 10, 2020
CriesofCarrots pushed a commit to CriesofCarrots/solana that referenced this pull request Aug 10, 2020
@hendrikhofstadt
Copy link
Contributor

@jackcmay Just noticed that this should probably rather use #[cfg(target_arch = "bpf")] because when testing a program the target is not bpf but the program feature is still set and the syscalls are not available.

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