11import { EIP712Version } from '@injectivelabs/ts-types'
22import { mockFactory , prepareEip712 } from '@injectivelabs/utils/test-utils'
3- import MsgSetDelegationTransferReceivers from './MsgSetDelegationTransferReceivers .js'
3+ import MsgSetDelegationTransferReceiversV2 from './MsgSetDelegationTransferReceiversV2 .js'
44import {
55 getEip712TypedData ,
66 getEip712TypedDataV2 ,
77} from '../../../tx/eip712/eip712.js'
88import { IndexerGrpcWeb3GwApi } from './../../../../client/indexer/grpc/IndexerGrpcWeb3GwApi.js'
99
10- const params : MsgSetDelegationTransferReceivers [ 'params' ] = {
10+ const params : MsgSetDelegationTransferReceiversV2 [ 'params' ] = {
1111 sender : mockFactory . injectiveAddress ,
1212 receivers : [ mockFactory . injectiveAddress2 ] ,
1313}
@@ -22,17 +22,16 @@ const protoParamsAmino = {
2222 sender : params . sender ,
2323 receivers : params . receivers ,
2424}
25- const message = MsgSetDelegationTransferReceivers . fromJSON ( params )
25+ const message = MsgSetDelegationTransferReceiversV2 . fromJSON ( params )
2626
27- // hidden in chain v1.18.0
28- describe ( 'MsgSetDelegationTransferReceivers' , ( ) => {
29- it . skip ( 'generates proper proto' , ( ) => {
27+ describe ( 'MsgSetDelegationTransferReceiversV2' , ( ) => {
28+ it ( 'generates proper proto' , ( ) => {
3029 const proto = message . toProto ( )
3130
3231 expect ( proto ) . toStrictEqual ( protoParams )
3332 } )
3433
35- it . skip ( 'generates proper data' , ( ) => {
34+ it ( 'generates proper data' , ( ) => {
3635 const data = message . toData ( )
3736
3837 expect ( data ) . toStrictEqual ( {
@@ -41,7 +40,7 @@ describe('MsgSetDelegationTransferReceivers', () => {
4140 } )
4241 } )
4342
44- it . skip ( 'generates proper amino' , ( ) => {
43+ it ( 'generates proper amino' , ( ) => {
4544 const amino = message . toAmino ( )
4645
4746 expect ( amino ) . toStrictEqual ( {
@@ -50,7 +49,7 @@ describe('MsgSetDelegationTransferReceivers', () => {
5049 } )
5150 } )
5251
53- it . skip ( 'generates proper web3Gw' , ( ) => {
52+ it ( 'generates proper web3Gw' , ( ) => {
5453 const web3 = message . toWeb3Gw ( )
5554
5655 expect ( web3 ) . toStrictEqual ( {
@@ -77,7 +76,6 @@ describe('MsgSetDelegationTransferReceivers', () => {
7776 expect ( eip712TypedData ) . toStrictEqual ( JSON . parse ( txResponse . data ) )
7877 } )
7978
80- // will be resolved in chain v1.17.1
8179 it . skip ( 'EIP712 v2' , async ( ) => {
8280 const eip712TypedData = getEip712TypedDataV2 ( eip712Args )
8381
0 commit comments