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

Commit 7ade28e

Browse files
committed
Update pinocchio dependency
1 parent 075b4b5 commit 7ade28e

File tree

4 files changed

+14
-17
lines changed

4 files changed

+14
-17
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,5 @@ license = "Apache-2.0"
1515
repository = "https://github.com/febo/token"
1616

1717
[workspace.dependencies]
18-
bytemuck = { version="1.18.0", features=["derive"] }
19-
pinocchio = { git = "https://github.com/febo/pinocchio.git", branch = "tweaks" }
20-
pinocchio-pubkey = { git = "https://github.com/febo/pinocchio.git", branch = "tweaks" }
21-
#pinocchio = { version = "^0", path = "/Users/febo/Developer/febo/pinocchio/sdk/pinocchio" }
22-
#pinocchio-pubkey = { version = "^0", path = "/Users/febo/Developer/febo/pinocchio/sdk/pubkey" }
18+
pinocchio = { git = "https://github.com/febo/pinocchio.git", branch = "febo/log-arguments" }
19+
pinocchio-pubkey = { git = "https://github.com/febo/pinocchio.git", branch = "febo/log-arguments" }

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ This repository contains a **proof-of-concept** of a reimplementation of the SPL
2020

2121
| Instruction | Completed | CU (`p-token`) | CU (`spl-token`) |
2222
|----------------------------|-----------|----------------|------------------|
23-
| `InitializeMint` || 343 | 2967 |
24-
| `InitializeAccount` || 416 | 4527 |
25-
| `InitializeMultisig` || 499 | 2973 |
23+
| `InitializeMint` || 97 | 2967 |
24+
| `InitializeAccount` || 175 | 4527 |
25+
| `InitializeMultisig` || 207 | 2973 |
2626
| `Transfer` || 140 | 4645 |
2727
| `Approve` || 133 | 2904 |
2828
| `Revoke` || 106 | 2677 |
@@ -36,11 +36,11 @@ This repository contains a **proof-of-concept** of a reimplementation of the SPL
3636
| `ApproveChecked` || 169 | 4459 |
3737
| `MintToChecked` || 178 | 4546 |
3838
| `BurnChecked` || 181 | 4755 |
39-
| `InitializeAccount2` || 399 | 4388 |
39+
| `InitializeAccount2` || 157 | 4388 |
4040
| `SyncNative` || | |
41-
| `InitializeAccount3` || 508 | 4240 |
42-
| `InitializeMultisig2` || 579 | 2826 |
43-
| `InitializeMint2` || 477 | 2827 |
41+
| `InitializeAccount3` || 264 | 4240 |
42+
| `InitializeMultisig2` || 340 | 2826 |
43+
| `InitializeMint2` || 231 | 2827 |
4444
| `GetAccountDataSize` || | |
4545
| `InitializeImmutableOwner` || | |
4646
| `AmountToUiAmount` || | |

program/src/processor/close_account.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ pub fn process_close_account(accounts: &[AccountInfo]) -> ProgramResult {
3333

3434
let destination_starting_lamports = destination_account_info.lamports();
3535
unsafe {
36-
// Moves the lamports to the destination account and closes the source account.
36+
// Moves the lamports to the destination account.
3737
*destination_account_info.borrow_mut_lamports_unchecked() = destination_starting_lamports
3838
.checked_add(source_account_info.lamports())
3939
.ok_or(TokenError::Overflow)?;
40-
41-
source_account_info.close();
40+
// Closes the source account.
41+
source_account_info.close_unchecked();
4242
}
4343

4444
Ok(())

0 commit comments

Comments
 (0)