-
Notifications
You must be signed in to change notification settings - Fork 446
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
feat: improvements and testing for RLP ink! contracts #2375
base: master
Are you sure you want to change the base?
Conversation
let selector = keccak_selector(b"flip"); | ||
let callee: AccountId = callee.into(); | ||
|
||
// TODO: fails due to call builder encoding with scale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more accurately, issue is coming from here:
let decoded = scale::DecodeAll::decode_all(&mut &output[..])?; |
…ion for tests to build
…ts and unused imports
This reverts commit 01e4f46.
@@ -109,8 +109,9 @@ where | |||
C: subxt::Config, | |||
E: Environment, | |||
{ | |||
api: ReviveApi<C, E>, | |||
contracts: ContractsRegistry, | |||
// TODO: make private once call builder supports RLP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should start adding our handles behind the TODO
, so that we don't get confused who's working on what.
@@ -0,0 +1,64 @@ | |||
use contract::Contract; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use contract::Contract; | |
use contract::Contract; | |
@@ -0,0 +1,29 @@ | |||
[package] | |||
name = "rlp-cross-contract" | |||
version = "5.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version = "5.0.0" | |
version = "6.0.0-alpha" |
|
||
#![cfg_attr(not(feature = "std"), no_std, no_main)] | ||
|
||
#[ink::contract(abi_encoding = "rlp")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[ink::contract(abi_encoding = "rlp")] | |
#[ink::contract(abi_encoding = "rlp")] |
Is it only encoding or also decoding?
Various improvements and fixes for RLP encoded ink! contracts.
Includes compile tests, as well as e2e tests for: