Skip to content

Conversation

@leoliu-centrality
Copy link

@leoliu-centrality leoliu-centrality commented Oct 23, 2019

closes #23

state: {
call(method: Text | string, data: Bytes | Uint8Array | string, block?: Hash | Uint8Array | string): Observable<Bytes>;
getChildKeys(childStorageKey: any, prefix: any, block?: Hash | Uint8Array | string): Observable<Vec<StorageKey>>;
getChildKeys(childStorageKey: any, key: any, block?: Hash | Uint8Array | string): Observable<Vec<StorageKey>>;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

getChildStorageHash(childStorageKey: any, key: any, block?: Hash | Uint8Array | string): Observable<Hash>;
getChildStorageSize(childStorageKey: any, key: any, block?: Hash | Uint8Array | string): Observable<u64>;
getKeys(prefix: any, block?: Hash | Uint8Array | string): Observable<Vec<StorageKey>>;
getKeys(key: any, block?: Hash | Uint8Array | string): Observable<Vec<StorageKey>>;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jordy25519 jordy25519 marked this pull request as ready for review October 24, 2019 23:57
@jordy25519 jordy25519 requested a review from ianhe8x October 24, 2019 23:57
@jordy25519
Copy link

@ianhe8x please advise about the travisci errors

// We can ignore the properties, added via Struct.with
const _Payload: Constructor<SignerPayloadType> = Struct.with({
address: 'Address',
doughnut: Option.with(Doughnut),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest you use 'Option<Doughnut>' which will allow user replace the default implementation

@ianhe8x
Copy link

ianhe8x commented Oct 25, 2019

I don't see doughnut is included anywhere in Extrinsic, the changes are all about having doughnut in signature.
BTW, the tests are old, they might work once in cennznet/api, but i think they don't work in this branch. (you don't even have tx.addDougnhut() in this branch)

@ianhe8x
Copy link

ianhe8x commented Oct 25, 2019

I also suggest not changing the default extrinsic implementation, which might make rebasing polkadotjs too much difficult. you can make a doughnut-type package or a doughnut folder in types to contain the modified version of extrinsic related classes, and change packages/types/src/interfaces/runtime/types.ts to make your extrinsic implementation become default.

@ianhe8x
Copy link

ianhe8x commented Oct 25, 2019

I'm not sure what happens to the ci, need more investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doughnut 2.0 Support

5 participants