Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer Transaction: Cadence -> EVM #85

Closed
bthaile opened this issue Jun 18, 2024 · 2 comments · Fixed by #90
Closed

Transfer Transaction: Cadence -> EVM #85

bthaile opened this issue Jun 18, 2024 · 2 comments · Fixed by #90

Comments

@bthaile
Copy link

bthaile commented Jun 18, 2024

Instructions

Issue To Be Solved

Transaction that allows transferring Fungible token from Cadence to EVM address.

Requirement for flow port to allow the user to transfer their Fungible / NFT from cadence to evm address

@sisyphusSmiling
Copy link
Contributor

To clarify here, would the following interface work for your needs on this @bthaile?

/// Bridges a Cadence fungible token from the signer's storage to the named recipient.
///
/// NOTE: This transaction also onboards the Vault to the bridge if necessary which may incur additional fees
///     than bridging an asset that has already been onboarded.
///
/// @param tokenContractAddress: The Flow account address hosting the FT-defining Cadence contract
/// @param tokenContractName: The name of the Vault-defining Cadence contract
/// @param amount: The amount of tokens to bridge from EVM
/// @param recipient: The hex address of the EVM recipient
///
transaction(tokenContractAddress: Address, tokenContractName: String, amount: UFix64, recipient: String)

Also wondering if it's safe to assume that the signer has sufficient funds in their Cadence Vault or if the transaction should consolidate balances across VMs to achieve the specified amount sent to the recipient.

@bthaile
Copy link
Author

bthaile commented Jun 18, 2024

closing, looks like there is existing tx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants