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
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/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ export async function generateText({
case ModelProviderName.GAIANET: {
elizaLogger.debug("Initializing GAIANET model.");

var baseURL = getEndpoint(provider);
let baseURL = getEndpoint(provider);
if (!baseURL) {
switch (modelClass) {
case ModelClass.SMALL:
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-0g/src/actions/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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,
Expand Down
Loading