Skip to content

createTokenBlock validation requires wipe contract in the template to be set, regardless if the wipe operation is enabled #4911

@Neurone

Description

@Neurone

Problem description

When set as autorun = true, createTokenBlock validation requires wipe contract to be set in the template, regardless if the wipe operation is enabled.

Step to reproduce

  1. Go to the token template configuration
  2. Set all features to "No"
  3. Create a policy with a createTokenBlock block
  4. Use the template and set autocreate = true
  5. Try validating the policy
  6. See the error "Autorun requires all fields to be filled in token template"
  7. Change the template to allow Wipe operation and set the contract "Empty"
  8. Try validating the policy
  9. Now the policy is validated correctly

Expected behavior

Validation passes with all token template features set to "No".

Screenshots

Image Image

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions