aavegotchi-cli 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/signer.js +1 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/signer.js
CHANGED
|
@@ -467,20 +467,15 @@ async function resolveSignerRuntime(signer, publicClient, rpcUrl, chain, customH
|
|
|
467
467
|
return {
|
|
468
468
|
summary,
|
|
469
469
|
sendTransaction: async (request) => {
|
|
470
|
+
// Bankr expects a minimal transaction schema for /agent/submit.
|
|
470
471
|
const payload = {
|
|
471
472
|
transaction: {
|
|
472
473
|
chainId: request.chain.id,
|
|
473
|
-
from: address,
|
|
474
474
|
to: request.to,
|
|
475
475
|
data: request.data,
|
|
476
476
|
value: request.value?.toString() || "0",
|
|
477
|
-
gas: request.gas.toString(),
|
|
478
|
-
nonce: request.nonce,
|
|
479
|
-
maxFeePerGas: request.maxFeePerGas?.toString(),
|
|
480
|
-
maxPriorityFeePerGas: request.maxPriorityFeePerGas?.toString(),
|
|
481
477
|
},
|
|
482
478
|
waitForConfirmation: false,
|
|
483
|
-
description: "Submitted via aavegotchi-cli",
|
|
484
479
|
};
|
|
485
480
|
const response = await fetchBankrJson(addDefaultPaths(apiUrl, BANKR_AGENT_SUBMIT_PATH), {
|
|
486
481
|
method: "POST",
|