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

does ink support like EVM script? or contract call? #634

Closed
galaio opened this issue Jan 16, 2021 · 6 comments
Closed

does ink support like EVM script? or contract call? #634

galaio opened this issue Jan 16, 2021 · 6 comments
Labels
C-question Further information is requested

Comments

@galaio
Copy link
Author

galaio commented Jan 25, 2021

@atenjin
Copy link

atenjin commented Jan 27, 2021

contracts call can do this.
But your solidity should be complied into WASM, currently the tool Solang can do this https://github.com/hyperledger-labs/solang.

Our patract tool Redspot would add Solang plugin and provide a way to compile with ink together in future, currently not in plan now.

@galaio
Copy link
Author

galaio commented Jan 31, 2021

contracts call can do this.
But your solidity should be complied into WASM, currently the tool Solang can do this https://github.com/hyperledger-labs/solang.

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.

@boyswan
Copy link

boyswan commented Feb 27, 2021

@hychen
Copy link
Contributor

hychen commented Apr 12, 2021

You'll need to use low level API builld_call until generic trait feature is implemented if the contract you want to call which implements traits.

I made another example of executing cross contract call via high level API FromAccounand::from_account_id and low level API build_call. Link is below:
https://github.com/hychen/redspot/tree/cross-contract-call/examples/cross-contract-call

@HCastano HCastano added the C-question Further information is requested label Jun 15, 2021
@HCastano
Copy link
Contributor

Closing since it looks answered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants