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

fix buffer size for updateable program buffer rent exempt fee calculation #34781

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

HaoranYi
Copy link
Contributor

@HaoranYi HaoranYi commented Jan 15, 2024

Problem

In #34722, we are using the wrong metadata size (i.e. program metadata) for program buffer account rent-exempt lamport calculation, i.e. 45bytes vs 37btes.

Summary of Changes

Fix the wrong metadata size by using the correct size_of_buffer fn.

Fixes #

Copy link

codecov bot commented Jan 15, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (f92275b) 81.8% compared to head (6f423b6) 81.7%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34781     +/-   ##
=========================================
- Coverage    81.8%    81.7%   -0.1%     
=========================================
  Files         825      825             
  Lines      223124   223124             
=========================================
- Hits       182527   182495     -32     
- Misses      40597    40629     +32     

@HaoranYi HaoranYi merged commit 258c920 into solana-labs:master Jan 16, 2024
20 checks passed
@HaoranYi HaoranYi deleted the 2024_Jan_14 branch January 26, 2024 21:50
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.

2 participants