Skip to content

Commit

Permalink
Merge pull request #105 from Chia-Network/dev/michael.taylor/rework-w…
Browse files Browse the repository at this point in the history
…allet-indexes

fix: rework wallet indexes
  • Loading branch information
TheLastCicada authored Oct 3, 2023
2 parents 214fc48 + 804f88d commit b6fac54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from chia.types.condition_opcodes import ConditionOpcode
from chia.wallet.payment import Payment

CLIMATE_WALLET_INDEX = 1
CLIMATE_WALLET_INDEX = 2

class GatewayMode(enum.Enum):
TOKENIZATION = "tokenization"
Expand All @@ -18,9 +18,9 @@ class GatewayMode(enum.Enum):

def to_int(self) -> int:
return {
GatewayMode.TOKENIZATION: 0,
GatewayMode.TOKENIZATION: -1,
GatewayMode.DETOKENIZATION: 1,
GatewayMode.PERMISSIONLESS_RETIREMENT: 2,
GatewayMode.PERMISSIONLESS_RETIREMENT: 0,
}[self]


Expand Down

0 comments on commit b6fac54

Please sign in to comment.