Skip to content

Commit

Permalink
fix: grammar(CCS-101)
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Marcinkowski <mateusz.marcinkowski@arianelabs.com>
  • Loading branch information
mateuszm-arianelabs committed Feb 3, 2025
1 parent 57f3578 commit bc5e287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,22 @@ export const claimAirdropAction: Action = {
_options: { [key: string]: unknown },
_callback?: HandlerCallback
) => {
console.log("invoke");

const claimAirdropContext = composeContext({
state: state,
template: claimAirdropTemplate,
templatingEngine: "handlebars",
});

console.log("test");

const claimAirdropContent = await generateObjectDeprecated({
runtime: runtime,
context: claimAirdropContext,
modelClass: ModelClass.SMALL,
});

try {
console.log(claimAirdropContent);

const claimAirdropData =
claimAirdropParamsSchema.parse(claimAirdropContent);

console.log(claimAirdropData);

const accountId = runtime.getSetting("HEDERA_ACCOUNT_ID");

const hederaProvider = new HederaProvider(runtime);
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-hedera/src/templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ export const claimAirdropTemplate = `Given the recent messages and wallet inform
{{walletInfo}}
Extract data of pending token airdrop from message with following instructions.
1. **Sender Id**
- Sender Id should looks like "0.0.5422268" and should be string.
- Sender Id should look like "0.0.5422268" and should be a string.
- Sender Id as string cant have other chars than numbers 0 to 9 and dots.
- Dots cant start accountId string or end, there is always number on start and end.
- Dots can't start senderId string or end, there is always a number on the start and end.
- Example sender ids are "0.0.5422268", "0.0.4515756"
3. **Token Id**
- Token Id should looks like "0.0.5422268" and should be string.
- Token Id as string cant have other chars than numbers 0 to 9 and dots.
- Dots cant start accountId string or end, there is always number on start and end.
- Dots can't start tokenId string or end, there is always a number on the start and end.
- Example token ids are "0.0.5447843", "0.0.4515756"
Respond with a JSON markdown block containing only the extracted values:
Expand Down

0 comments on commit bc5e287

Please # to comment.