Skip to content

Conversation

@arcoraven
Copy link
Contributor

@arcoraven arcoraven commented Nov 1, 2024

PR-Codex overview

This PR focuses on enhancing the sanitizeAbi function in src/server/utils/abi.ts and improving the handling of function names in the contract writing process, along with updating test cases for better clarity and functionality.

Detailed summary

  • Refactored sanitizeAbi to improve readability.
  • Added sanitizeFunctionName to ensure function names start with "function ".
  • Updated test descriptions for clarity.
  • Added a new test for writing to a contract with a function signature.
  • Modified input schema descriptions for better guidance.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

import type { setupEngine } from "../utils/engine";
import { pollTransactionStatus } from "../utils/transactions";
import { setup } from "./setup";
import type { ApiError } from "../../../../sdk/dist/thirdweb-dev-engine.cjs.js";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved this test file into the routes folder

@arcoraven arcoraven merged commit e441ba4 into main Nov 1, 2024
5 checks passed
@arcoraven arcoraven deleted the ph/handleFunctionPrefix branch November 1, 2024 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants