Skip to content

Commit

Permalink
fix imports for standard transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahannan committed Mar 27, 2024
1 parent 8453adb commit bd13311
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions lib/go/templates/internal/assets/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions lib/go/templates/transaction_templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ func GenerateSetupAccountFromAddressScript(fungibleTokenAddr, fungibleTokenMVAdd
code = strings.ReplaceAll(
code,
placeholderFungibleToken,
withHexPrefix(fungibleTokenAddr),
fungibleTokenImport+withHexPrefix(fungibleTokenAddr),
)

code = strings.ReplaceAll(
code,
placeholderFTMetadataViews,
withHexPrefix(fungibleTokenMVAddr),
ftMetadataViewsImport+withHexPrefix(fungibleTokenMVAddr),
)

return []byte(code)
Expand All @@ -74,7 +74,7 @@ func GenerateTransferGenericVaultWithPathsScript(fungibleTokenAddr string) []byt
code = strings.ReplaceAll(
code,
placeholderFungibleToken,
withHexPrefix(fungibleTokenAddr),
fungibleTokenImport+withHexPrefix(fungibleTokenAddr),
)

return []byte(code)
Expand All @@ -89,13 +89,13 @@ func GenerateTransferGenericVaultWithAddressScript(fungibleTokenAddr, ftMetadata
code = strings.ReplaceAll(
code,
placeholderFungibleToken,
withHexPrefix(fungibleTokenAddr),
fungibleTokenImport+withHexPrefix(fungibleTokenAddr),
)

code = strings.ReplaceAll(
code,
placeholderFTMetadataViews,
withHexPrefix(ftMetadataViewsAddr),
ftMetadataViewsImport+withHexPrefix(ftMetadataViewsAddr),
)

return []byte(code)
Expand Down
2 changes: 1 addition & 1 deletion transactions/generic_transfer_with_address.cdc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "FungibleToken"
import FungibleTokenMetadataViews from "FungibleTokenMetadataViews"
import "FungibleTokenMetadataViews"

/// Can pass in any contract address and name to transfer a token from that contract
/// This lets you choose the token you want to send
Expand Down

0 comments on commit bd13311

Please sign in to comment.