You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately this leads to the folloing compilation errors:
src/ibc/lightclients/tendermint/v1/tendermint.ts:523:28 - error TS2551: Property 'header_1' does not exist on type 'Misbehaviour'. Did you mean 'header1'?
523 obj.header_1 = message.header_1 ? Header.toAmino(message.header_1) : undefined;
~~~~~~~~
src/ibc/lightclients/tendermint/v1/tendermint.ts:79:3
79 header1?: Header;
~~~~~~~
'header1' is declared here.
src/ibc/lightclients/tendermint/v1/tendermint.ts:523:62 - error TS2551: Property 'header_1' does not exist on type 'Misbehaviour'. Did you mean 'header1'?
523 obj.header_1 = message.header_1 ? Header.toAmino(message.header_1) : undefined;
~~~~~~~~
src/ibc/lightclients/tendermint/v1/tendermint.ts:79:3
79 header1?: Header;
~~~~~~~
'header1' is declared here.
src/ibc/lightclients/tendermint/v1/tendermint.ts:524:28 - error TS2551: Property 'header_2' does not exist on type 'Misbehaviour'. Did you mean 'header2'?
524 obj.header_2 = message.header_2 ? Header.toAmino(message.header_2) : undefined;
~~~~~~~~
src/ibc/lightclients/tendermint/v1/tendermint.ts:80:3
80 header2?: Header;
~~~~~~~
'header2' is declared here.
src/ibc/lightclients/tendermint/v1/tendermint.ts:524:62 - error TS2551: Property 'header_2' does not exist on type 'Misbehaviour'. Did you mean 'header2'?
524 obj.header_2 = message.header_2 ? Header.toAmino(message.header_2) : undefined;
~~~~~~~~
src/ibc/lightclients/tendermint/v1/tendermint.ts:80:3
80 header2?: Header;
~~~~~~~
'header2' is declared here.
So this error is around accessing the non-Amino object, e.g.
/** * Misbehaviour is a wrapper over two conflicting Headers * that implements Misbehaviour interface expected by ICS-02 */exportinterfaceMisbehaviour{/** ClientID is deprecated *//** @deprecated */clientId: string;header1?: Header;header2?: Header;}
The text was updated successfully, but these errors were encountered:
I tried using fromAmino/toAmino in cosmjs-types by adding the following settings:
Unfortunately this leads to the folloing compilation errors:
So this error is around accessing the non-Amino object, e.g.
The text was updated successfully, but these errors were encountered: