@@ -38,12 +38,13 @@ func SubmitTx(client *Client, method Method, args ...interface{}) error {
3838
3939 // Sign the extrinsic
4040 o := types.SignatureOptions {
41- BlockHash : client .Genesis ,
42- Era : types.ExtrinsicEra {IsMortalEra : false },
43- GenesisHash : client .Genesis ,
44- Nonce : types .NewUCompactFromUInt (uint64 (acct .Nonce )),
45- SpecVersion : rv .SpecVersion ,
46- Tip : types .NewUCompactFromUInt (0 ),
41+ BlockHash : client .Genesis ,
42+ Era : types.ExtrinsicEra {IsMortalEra : false },
43+ GenesisHash : client .Genesis ,
44+ Nonce : types .NewUCompactFromUInt (uint64 (acct .Nonce )),
45+ SpecVersion : rv .SpecVersion ,
46+ Tip : types .NewUCompactFromUInt (0 ),
47+ TransactionVersion : 1 ,
4748 }
4849 err = ext .Sign (* client .Key , o )
4950 if err != nil {
@@ -96,12 +97,13 @@ func BatchSubmit(client *Client, calls []types.Call) error {
9697
9798 // Sign the extrinsic
9899 o := types.SignatureOptions {
99- BlockHash : client .Genesis ,
100- Era : types.ExtrinsicEra {IsMortalEra : false },
101- GenesisHash : client .Genesis ,
102- Nonce : types .NewUCompactFromUInt (uint64 (acct .Nonce )),
103- SpecVersion : rv .SpecVersion ,
104- Tip : types .NewUCompactFromUInt (0 ),
100+ BlockHash : client .Genesis ,
101+ Era : types.ExtrinsicEra {IsMortalEra : false },
102+ GenesisHash : client .Genesis ,
103+ Nonce : types .NewUCompactFromUInt (uint64 (acct .Nonce )),
104+ SpecVersion : rv .SpecVersion ,
105+ Tip : types .NewUCompactFromUInt (0 ),
106+ TransactionVersion : 1 ,
105107 }
106108
107109 wg := & sync.WaitGroup {}
0 commit comments