Skip to content

Commit

Permalink
fix: rework wallet indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Oct 3, 2023
1 parent f31e167 commit 804f88d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Chia Climate Token Driver"
version = "1.0.27"
version = "1.0.28"
description = "https://github.com/Chia-Network/climate-token-driver"
authors = ["Harry Hsu <[email protected]>",
"Chia Network Inc <[email protected]>"]
Expand Down

0 comments on commit 804f88d

Please sign in to comment.