Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Avoid showing variable name on prompt message if not available #1224

Merged
merged 3 commits into from
Sep 11, 2019

Conversation

jbcarpanelli
Copy link
Contributor

@jbcarpanelli jbcarpanelli commented Sep 9, 2019

Fixes #1209. This PR fixes oz call, oz send-tx, oz create and oz upgrade interactive method and method arguments prompts when a contract has:

  • A public mapping variable defined (and thus a getter function associated)
  • A function that receives parameters without name.

In both cases, we are now showing the function definition without the variable name and a #0, #1, #2, ..., #n for each parameter without a name:
bug

@jbcarpanelli jbcarpanelli marked this pull request as ready for review September 11, 2019 17:36
@jbcarpanelli jbcarpanelli changed the title Avoid showing variable name on prompt message if no variable name is available Avoid showing variable name on prompt message if not available Sep 11, 2019
Copy link
Contributor

@ylv-io ylv-io left a comment

Choose a reason for hiding this comment

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

This is a proper pull request 🚢

@ylv-io ylv-io merged commit 269f097 into master Sep 11, 2019
@jbcarpanelli jbcarpanelli deleted the fix/support-reading-from-public-mappings branch September 12, 2019 14:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

oz call doesn't support reading from public mappings
2 participants