Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snap-solana-wallet.git"
},
"source": {
"shasum": "K6WM41X4AIT62Esep4eK3X2y3lt7gOYBDtoDEhp+O90=",
"shasum": "KYRZwy5xyJvWnFQ6rKI5S21yHbkUoD9Xa7vh94P9HDc=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('SendSplTokenBuilder', () => {
},
instructions: [
{
data: new Uint8Array([2, 48, 117, 0, 0]),
data: new Uint8Array([2, 64, 156, 0, 0]),
programAddress: 'ComputeBudget111111111111111111111111111111',
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ export class SendSplTokenBuilder implements ISendTransactionBuilder {
readonly #logger: ILogger;

/**
* The transaction built here always consumes less than 30,000 compute units,
* even in the case where we need to create the recepient's associated token account.
* The transaction built here consumes up to ~30,000 compute units when just transferring
* to an existing associated token account, but requires ~35,000+ compute units when
* creating the recipient's associated token account.
*/
readonly #computeUnitLimit = 30_000;
readonly #computeUnitLimit = 40_000;

readonly #computeUnitPriceMicroLamportsPerComputeUnit = 10000n;

Expand Down
Loading