Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

call_contract internal server error (0.5.0a0) #425

Closed
2 tasks done
penovicp opened this issue Mar 27, 2023 · 0 comments · Fixed by #426
Closed
2 tasks done

call_contract internal server error (0.5.0a0) #425

penovicp opened this issue Mar 27, 2023 · 0 comments · Fixed by #426
Assignees
Labels
Context: coupled interact with some parts of the codebase Difficulty: easy anybody can understand it Techno: python Python Type: bug Something isn't working

Comments

@penovicp
Copy link

Describe the bug (observed vs expected behavior)

The recent renaming of contract_address to sender_address in the InvokeFunction cairo-lang class causes some call_contract calls to result in an internal server error.

For the payload:

{
    "entry_point_selector": "0x0",
    "calldata": [],
    "signature": [],
    "sender_address": "0x01"
}
  • the result is an unexpected 500 status internal server error
  • the underlying error is: AttributeError: 'InvokeFunction' object has no attribute 'contract_address'
  • for testnet the result is an expected 500 status UNINITIALIZED_CONTRACT error

For the payload:

{
    "entry_point_selector": "0x0",
    "calldata": [],
    "contract_address": "0x01"
}
  • the result is an expected 500 status UNINITIALIZED_CONTRACT error for both devnet and testnet

Not reproducible on alpha-goerli

  • This issue is only present on Devnet and cannot be reproduced on alpha-goerli (check the box if true).

Devnet version

  • I am using Devnet version: 0.5.0a0
  • This happens with a dockerized Devnet (check the box if true).
  • This does not appear on the following Devnet version: 0.4.6
@FabijanC FabijanC self-assigned this Mar 27, 2023
@FabijanC FabijanC added Type: bug Something isn't working Techno: python Python Context: coupled interact with some parts of the codebase Difficulty: easy anybody can understand it labels Mar 27, 2023
@FabijanC FabijanC mentioned this issue Mar 27, 2023
8 tasks
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in starknet-devnet Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Context: coupled interact with some parts of the codebase Difficulty: easy anybody can understand it Techno: python Python Type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants