Skip to content

feat(contract): Set current banker when contract is in banker state#1508

Merged
mkmccarty merged 1 commit intomainfrom
mm-branch-1
Sep 12, 2025
Merged

feat(contract): Set current banker when contract is in banker state#1508
mkmccarty merged 1 commit intomainfrom
mm-branch-1

Conversation

@mkmccarty
Copy link
Owner

The changes made in this commit are:

  1. Added a new condition to set the contract.Banker.CurrentBanker field when the contract is in the ContractStateBanker state.
  2. Simplified the condition for displaying the "Banker" sink in the boost_handlers.go file by removing the check for the ContractStateSignup state.
  3. Moved the appending of the discordgo.ActionsRow to the end of the function in boost_handlers.go to ensure that the buttons are always added to the response.

These changes are made to ensure that the current banker is correctly set when the contract is in the banker state, and to simplify the logic for displaying the "Banker" sink.

The changes made in this commit are:

1. Added a new condition to set the `contract.Banker.CurrentBanker` field when the contract is in the `ContractStateBanker` state.
2. Simplified the condition for displaying the "Banker" sink in the `boost_handlers.go` file by removing the check for the `ContractStateSignup` state.
3. Moved the appending of the `discordgo.ActionsRow` to the end of the function in `boost_handlers.go` to ensure that the buttons are always added to the response.

These changes are made to ensure that the current banker is correctly set when the contract is in the banker state, and to simplify the logic for displaying the "Banker" sink.
@mkmccarty mkmccarty merged commit 62f7472 into main Sep 12, 2025
12 checks passed
@mkmccarty mkmccarty deleted the mm-branch-1 branch September 12, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant