-
Notifications
You must be signed in to change notification settings - Fork 428
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
does ink support like EVM script? or contract call? #634
Comments
@Robbepop @ascjones help, how to call another contract function in ink! call erc20 transferFrom |
contracts call can do this. Our patract tool Redspot would add Solang plugin and provide a way to compile with ink together in future, currently not in plan now. |
how to call contract in pure ink, i found a example https://github.com/paritytech/ink/tree/master/examples/delegator , but it pass code_hash not the contract address. |
Here's an example |
You'll need to use low level API I made another example of executing cross contract call via high level API |
Closing since it looks answered |
like this exec EVM script
https://github.com/aragon/aragon-apps/blob/631048d54b9cc71058abb8bd7c17f6738755d950/apps/voting/contracts/Voting.sol#L355
or call erc20 transferFrom
https://github.com/aragon/aragon-apps/blob/631048d54b9cc71058abb8bd7c17f6738755d950/apps/token-manager/contracts/TokenManager.sol#L318
The text was updated successfully, but these errors were encountered: