File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
.github/actions/write-program-buffer Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,14 @@ runs:
71
71
shell : bash
72
72
run : |
73
73
REQUIRED_SIZE=$(wc -c < ./target/deploy/${{ inputs.program }}.so)
74
+ CURRENT_SIZE="${{ steps.check-program.outputs.data_len }}"
74
75
echo "Required size: $REQUIRED_SIZE"
76
+ echo "Current size: $CURRENT_SIZE"
75
77
76
- if [ "$REQUIRED_SIZE" -gt "${{ steps.check-program.outputs.data_len }}" ]; then
77
- echo "Program needs to be resized"
78
- solana program extend ${{ inputs.program-id }} $REQUIRED_SIZE \
78
+ if [ "$REQUIRED_SIZE" -gt "$CURRENT_SIZE" ]; then
79
+ EXTEND_SIZE=$((REQUIRED_SIZE - CURRENT_SIZE))
80
+ echo "Program needs to be extended by $EXTEND_SIZE bytes"
81
+ solana program extend ${{ inputs.program-id }} $EXTEND_SIZE \
79
82
--keypair ./deploy-keypair.json \
80
83
--url ${{ inputs.rpc-url }} \
81
84
--commitment confirmed
Original file line number Diff line number Diff line change @@ -162,6 +162,12 @@ npx ts-node scripts/squad-closebuffer.ts \
162
162
--program " BhV84MZrRnEvtWLdWMRJGJr1GbusxfVMHAwc3pq92g4z"
163
163
```
164
164
165
+ # Release v0.2.3
166
+
167
+ ## Bug Fixes
168
+
169
+ - Fix extend program size check
170
+
165
171
# Release v0.2.2
166
172
167
173
## Bug Fixes
You can’t perform that action at this time.
0 commit comments