Skip to content

Commit

Permalink
add Crypto contract to templates code
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Oct 17, 2024
1 parent e74fbfe commit 79fdc6c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/go/templates/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const (
placeholderFungibleTokenMVAddress = "\"FungibleTokenMetadataViews\""
placeholderMetadataViewsAddress = "\"MetadataViews\""
placeholderBurnerAddress = "\"Burner\""
placeholderCryptoAddress = "\"Crypto\""
placeholderFlowTokenAddress = "\"FlowToken\""
placeholderIDTableAddress = "\"FlowIDTableStaking\""
placeholderLockedTokensAddress = "\"LockedTokens\""
Expand All @@ -38,6 +39,7 @@ type Environment struct {
Network string
ViewResolverAddress string
BurnerAddress string
CryptoAddress string
FungibleTokenAddress string
NonFungibleTokenAddress string
MetadataViewsAddress string
Expand Down Expand Up @@ -90,6 +92,12 @@ func ReplaceAddresses(code string, env Environment) string {
withHexPrefix(env.BurnerAddress),
)

code = strings.ReplaceAll(
code,
placeholderCryptoAddress,
withHexPrefix(env.CryptoAddress),
)

code = strings.ReplaceAll(
code,
placeholderViewResolverAddress,
Expand Down

0 comments on commit 79fdc6c

Please sign in to comment.