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

feat(evm)!: prioritize executing burn commands #1268

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

fish-sammy
Copy link
Contributor

@fish-sammy fish-sammy commented Jan 30, 2022

Description

Todos

  • Unit tests
  • Manual tests
  • Documentation
  • Connect epics/issues
  • Tag type of change

Steps to Test

Expected Behaviour

Other Notes

@fish-sammy fish-sammy linked an issue Jan 30, 2022 that may be closed by this pull request
@fish-sammy fish-sammy added the enhancement New feature or request label Jan 30, 2022
@fish-sammy fish-sammy added the next release Required for the next release label Jan 31, 2022
Copy link
Contributor

@haiyizxx haiyizxx left a comment

Choose a reason for hiding this comment

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

LGTM

@fish-sammy fish-sammy merged commit 62c8f16 into main Jan 31, 2022
@fish-sammy fish-sammy deleted the feat/cmd-queue-prefers-burn branch January 31, 2022 18:53
bz := make([]byte, 8)

switch command.Command {
case types.AxelarGatewayCommandBurnToken:
Copy link
Contributor

Choose a reason for hiding this comment

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

why is there no prefix at all in this case, shouldn't it be 0 or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

0 is just empty bytes and by doing nothing to bz, it is. @cgorenflo

Comment on lines +1300 to +1302
if _, err := strconv.ParseInt(keyParticles[0], 10, 64); err != nil {
return fmt.Errorf("expected first key part of %s to be a block height", key)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

is this not going to fail with a burn command in the queue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No it shouldn't. Burn commands' block heights at here are all 0's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request next release Required for the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

external erc-20
3 participants