File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
apps/dashboard/src/app/team/[team_slug]/[project_slug]/engine
server-wallets/components Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -67,20 +67,20 @@ export function SendTestTransaction(props: {
6767 headers : {
6868 "Content-Type" : "application/json" ,
6969 "x-secret-key" : form . getValues ( "projectSecretKey" ) ,
70+ "x-vault-access-token" : args . accessToken ,
7071 } ,
7172 body : JSON . stringify ( {
7273 executionOptions : {
7374 type : "AA" ,
7475 signerAddress : args . walletAddress ,
76+ chainId : args . chainId . toString ( ) ,
7577 } ,
76- transactionParams : [
78+ params : [
7779 {
7880 to : args . walletAddress ,
7981 value : "0" ,
8082 } ,
8183 ] ,
82- vaultAccessToken : args . accessToken ,
83- chainId : args . chainId . toString ( ) ,
8484 } ) ,
8585 } ,
8686 ) ;
Original file line number Diff line number Diff line change @@ -64,21 +64,22 @@ const response = fetch(
6464 headers: {
6565 "Content-Type": "application/json",
6666 "x-secret-key": "<your-project-secret-key>",
67+ "x-vault-access-token": "<your-wallet-access-token>",
68+
6769 },
6870 body: JSON.stringify({
6971 "executionOptions": {
7072 "type": "AA",
71- "signerAddress": "<your-server-wallet-address>"
73+ "signerAddress": "<your-server-wallet-address>",
74+ "chainId": "84532"
7275 },
73- "transactionParams ": [
76+ "params ": [
7477 {
7578 "contractAddress": "0x...",
7679 "method": "approve",
7780 "params": ["0x...", "0"],
7881 },
7982 ],
80- "vaultAccessToken": "<your-wallet-access-token>",
81- "chainId": "84532"
8283 }),
8384 }
8485);` ;
You can’t perform that action at this time.
0 commit comments