test_aptos_contract
Evaluate Aptos Move contracts by specifying the contract path, optionally testing a specific function and its arguments. This tool integrates with the Aptos CLI for effective contract validation.
Instructions
Test an Aptos Move contract using the Aptos CLI.
Args:
contract_path: Path to the contract directory or file
function_name: Optional function to test specifically
args: Optional list of arguments for the function
Input Schema
Name | Required | Description | Default |
---|---|---|---|
args | No | ||
contract_path | Yes | ||
function_name | No |
Input Schema (JSON Schema)
{
"properties": {
"args": {
"default": null,
"items": {},
"title": "Args",
"type": "array"
},
"contract_path": {
"title": "Contract Path",
"type": "string"
},
"function_name": {
"default": "",
"title": "Function Name",
"type": "string"
}
},
"required": [
"contract_path"
],
"title": "test_aptos_contractArguments",
"type": "object"
}