Skip to content

Contract changes requiring a page refresh after deploy to be usable in a transaction #740

Description

@Deewai

Describe the bug
Changes to a smart contract don't reflect in transactions(even after a redeploy) until after the page is reloaded. So if i add a new function to my contract and deploy, that function is not accessible in a transaction until i reload the page

To Reproduce
Steps to reproduce the behavior:

  • open the flow playground
  • add a new function access(all) fun hi(): String { return "hi" } to the default HelloWorld contract
  • deploy the contract
  • click on the Transaction file and try calling HelloWorld.hi()
  • and you'll get an error value of type HelloWorldhas no memberhi. unknown member

Expected behavior
Expect no error to occur and the transaction should be runnable

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser chrome
  • Version 2.1.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    🏗 In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions