Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: empty caller after define first address #568

Merged
merged 4 commits into from
Sep 17, 2024

Conversation

alexruzenhack
Copy link
Contributor

@alexruzenhack alexruzenhack commented Sep 16, 2024

Acceptance Criteria

  • Fix empty caller after register nano contract
  • Fix empty caller after define first address while nano contract is not registered
  • Remove dependency on initialize call on NanoContractExecInfo component
  • Shows caller address not determined feedback asking user to select one when caller address is empty or first address request fails

Initialize working

hathorplay-initialize-working.mp4

Not registered nano bet working

hathorplay-not-registered-nano-bet.mp4

Caller empty or first address request failed

The following screenshot simulates the caller empty, it is very unlikely to happen now.

Security Checklist

  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

- It should inform the caller was not set and ask user to select one when:
  - the registered nano contract doesn't have an address, which should not happen anymore
  - the first address request fails, which can happen when the effect is requested by a initilize call
      or by a not registered nano contract
@andreabadesso andreabadesso merged commit 9d527c2 into hathorplay-base-release Sep 17, 2024
@andreabadesso andreabadesso deleted the fix/empty-caller branch September 17, 2024 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants