Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remote var with let #2020

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
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/core/src/generation.ts
Original file line number Diff line number Diff line change
@@ -688,7 +688,7 @@ export async function generateText({
case ModelProviderName.GAIANET: {
elizaLogger.debug("Initializing GAIANET model.");

var baseURL = models[provider].endpoint;
let baseURL = models[provider].endpoint;
if (!baseURL) {
switch (modelClass) {
case ModelClass.SMALL:
4 changes: 2 additions & 2 deletions packages/plugin-0g/src/actions/upload.ts
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@ export const zgUpload: Action = {
}

const file = await ZgFile.fromFilePath(filePath);
var [tree, err] = await file.merkleTree();
let [tree, err] = await file.merkleTree();
if (err === null) {
console.log("File Root Hash: ", tree.rootHash());
} else {
@@ -122,7 +122,7 @@ export const zgUpload: Action = {
const indexer = new Indexer(zgIndexerRpc);
const flowContract = getFlowContract(flowAddr, signer);

var [tx, err] = await indexer.upload(
let [tx, err] = await indexer.upload(
Copy link
Collaborator

@ag-wnl ag-wnl Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the reason smoke test is failing, here we are using let for defining same names in the same block scope

file,
0,
zgEvmRpc,

Unchanged files with check annotations Beta

*/
function isTransferContent(
runtime: IAgentRuntime,
content: any

Check warning on line 43 in packages/plugin-flow/src/actions/transfer.ts

GitHub Actions / check

Unexpected any. Specify a different type
): content is TransferContent {
elizaLogger.log("Content for transfer", content);
return (
},
});
}
} catch (e: any) {

Check warning on line 245 in packages/plugin-flow/src/actions/transfer.ts

GitHub Actions / check

Unexpected any. Specify a different type
elizaLogger.error("Error in sending transaction:", e.message);
if (callback) {
callback({
if (!privateKey) {
throw new Exception(50200, "No private key provided");
}
return (account: any) => {

Check warning on line 99 in packages/plugin-flow/src/providers/wallet.provider.ts

GitHub Actions / check

Unexpected any. Specify a different type
return {
...account,
tempId: `${address}-${accountIndex}`,
addr: fcl.sansPrefix(address),
keyId: Number(accountIndex),
signingFunction: (
signable: any

Check warning on line 106 in packages/plugin-flow/src/providers/wallet.provider.ts

GitHub Actions / check

Unexpected any. Specify a different type
): Promise<CompositeSignature> => {
return Promise.resolve({
f_type: "CompositeSignature",
walletProvider = new FlowWalletProvider(
mockedRuntime,
connector,
mockCacheManager as any

Check warning on line 56 in packages/plugin-flow/src/tests/wallet.test.ts

GitHub Actions / check

Unexpected any. Specify a different type
);
});
runtime: IAgentRuntime,
message: Memory,
state: State,
options: any,

Check warning on line 138 in packages/client-discord/src/actions/chat_with_attachments.ts

GitHub Actions / check

Unexpected any. Specify a different type
callback: HandlerCallback
) => {
state = (await runtime.composeState(message)) as State;
runtime: IAgentRuntime,
message: Memory,
state: State,
options: any,

Check warning on line 88 in packages/client-discord/src/actions/download_media.ts

GitHub Actions / check

Unexpected any. Specify a different type
callback: HandlerCallback
) => {
const videoService = runtime
runtime: IAgentRuntime,
message: Memory,
state: State,
options: any,

Check warning on line 196 in packages/client-discord/src/actions/summarize_conversation.ts

GitHub Actions / check

Unexpected any. Specify a different type
callback: HandlerCallback
) => {
state = (await runtime.composeState(message)) as State;
runtime: IAgentRuntime,
message: Memory,
state: State,
options: any,

Check warning on line 110 in packages/client-discord/src/actions/transcribe_media.ts

GitHub Actions / check

Unexpected any. Specify a different type
callback: HandlerCallback
) => {
state = (await runtime.composeState(message)) as State;
}
}
private async onClientReady(readyClient: { user: { tag: any; id: any } }) {

Check warning on line 128 in packages/client-discord/src/index.ts

GitHub Actions / check

Unexpected any. Specify a different type
elizaLogger.success(`Logged in as ${readyClient.user?.tag}`);
// Register slash commands