diff --git a/lib/providers/substrate_sdk.dart b/lib/providers/substrate_sdk.dart
index 0f2f9ad97a62b5ed495cf24df0ee71c73c3da2e9..a6c6be5a0fa5992bed8e737caedfd40370014e2c 100644
--- a/lib/providers/substrate_sdk.dart
+++ b/lib/providers/substrate_sdk.dart
@@ -506,6 +506,7 @@ class SubstrateSdk with ChangeNotifier {
       keyring.current.pubKey,
     );
     TxInfoData txInfo;
+    List txOptions = [];
 
     if (toIdtyStatus == 'noid') {
       txInfo = TxInfoData(
@@ -513,6 +514,7 @@ class SubstrateSdk with ChangeNotifier {
         'createIdentity',
         sender,
       );
+      txOptions = [toAddress];
     } else if (toIdtyStatus == 'Validated' ||
         toIdtyStatus == 'ConfirmedByOwner') {
       if (toCerts[0] >= currencyParameters['wotMinCertForMembership'] &&
@@ -523,12 +525,17 @@ class SubstrateSdk with ChangeNotifier {
           'batchAll',
           sender,
         );
+        txOptions = [
+          'cert.addCert($fromIndex, $toIndex)',
+          'identity.validateIdentity($toIndex)'
+        ];
       } else {
         txInfo = TxInfoData(
           'cert',
           'addCert',
           sender,
         );
+        txOptions = [fromIndex, toIndex];
       }
     } else {
       transactionStatus = 'cantBeCert';
@@ -539,20 +546,6 @@ class SubstrateSdk with ChangeNotifier {
     log.d('Cert action: ${txInfo.call!}');
 
     try {
-      List txOptions = [];
-      if (txInfo.call == 'batchAll') {
-        txOptions = [
-          'cert.addCert($fromIndex, $toIndex)',
-          'identity.validateIdentity($toIndex)'
-        ];
-      } else if (txInfo.call == 'createIdentity') {
-        txOptions = [toAddress];
-      } else if (txInfo.call == 'addCert') {
-        txOptions = [fromIndex, toIndex];
-      } else {
-        log.e('TX call is unexpected');
-        return 'Äžecko says: TX call is unexpected';
-      }
       final hash = await sdk.api.tx
           .signAndSend(
             txInfo,
diff --git a/pubspec.yaml b/pubspec.yaml
index 1f0d806d061687f74cad43250606b2c21f535947..fad4eda4eeb89327872dec7d77b1bc3cb1ba944a 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -5,7 +5,7 @@ description: Pay with G1.
 # pub.dev using `pub publish`. This is preferred for private packages.
 publish_to: 'none' # Remove this line if you wish to publish to pub.dev
 
-version: 0.0.9+16
+version: 0.0.9+17
 
 environment:
   sdk: '>=2.12.0 <3.0.0'