Repository: ecadlabs/taquito
Pull request #1623 (2022-05-12 20:42:43)

Mk 1592 add test for kukai forger bug report
added lowercase to local forge 

string will now no longer contain the upper case characters. 

exception added to characters since bytes were translated to lower case it will no longer be expected to be upper case. 

- [ ] Your code builds cleanly without any errors or warnings
- [ ] You have added unit tests
- [ ] You have added integration tests (if relevant/appropriate)
- [ ] All public methods or types have TypeDoc coverage with a complete description, and ideally an @example
- [ ] You have added or updated corresponding documentation
- [ ] If relevant, you have written a first draft summary describing the change for inclusion in Release Notes. 

## Release Note Draft Snippet



Patch:
diff --git a/packages/taquito-local-forging/src/taquito-local-forging.ts b/packages/taquito-local-forging/src/taquito-local-forging.ts
index 75d06d834..cbfda5886 100644
--- a/packages/taquito-local-forging/src/taquito-local-forging.ts
+++ b/packages/taquito-local-forging/src/taquito-local-forging.ts
@@ -87,8 +87,8 @@ export class LocalForger implements Forger {
         throw new InvalidOperationSchemaError(`Missing properties: ${diff.join(', ').toString()}`);
       }
     }
-
-    return Promise.resolve(this.codec.encoder(params));
+    const forged = this.codec.encoder(params).toLowerCase()
+    return Promise.resolve(forged);
   }
 
   parse(hex: string): Promise<ForgeParams> {
diff --git a/website/src/components/TeamsCarousel/TeamsCarousel.js b/website/src/components/TeamsCarousel/TeamsCarousel.js
index 144461b99..cc8fe1b69 100644
--- a/website/src/components/TeamsCarousel/TeamsCarousel.js
+++ b/website/src/components/TeamsCarousel/TeamsCarousel.js
@@ -18,40 +18,35 @@ const FeatureList = [
         url: 'https://kolibri.finance/',
       },
       {
-        Image: require('../../../static/img/cryptoverse_wars.png').default,
-        title: 'Cryptoverse Wars',
-        url: 'https://cryptocodeschool.in/tezos/',
-      },
-      {
-        Image: require('../../../static/img/plenty.png').default,
-        title: 'Plenty',
-        url: 'https://www.plentydefi.com/',
+        Image: require('../../../static/img/sweet.png').default,
+        title: 'Sweet',
+        url: 'https://sweet.io/',
       },
       {
         Image: require('../../../static/img/interpop_logo.png').default,
         title: 'Interpop',
         url: 'https://www.interpop.io/',
       },
+      {
+        Image: require('../../../static/img/quipuswap-logo.png').default,
+        title: 'QuipuSwap',
+        url: 'https://quipuswap.com/',
+      },
       {
         Image: require('../../../static/img/spruce_logo.png').default,
         title: 'Spruce',
         url: 'https://www.spruceid.com/',
       },
       {
-        Image: require('../../../static/img/sweet.png').default,
-        title: 'Sweet',
-        url: 'https://sweet.io/',
+        Image: require('../../../static/img/plenty.png').default,
+        title: 'Plenty',
+        url: 'https://www.plentydefi.com/',
       },
       {
         Image: require('../../../static/img/Kukai_logo.png').default,
         title: 'Kukai',
         url: 'https://wallet.kukai.app/',
       },
-      {
-        Image: require('../../../static/img/quipuswap-logo.png').default,
-        title: 'QuipuSwap',
-        url: 'https://quipuswap.com/',
-      },
       {
         Image: require('../../../static/img/tezos_mandala.png').default,
         title: 'Tezos Mandala',
@@ -90,7 +85,7 @@ const FeatureList = [
       {
         Image: require('../../../static/img/Vector_1.png').default,
         title: 'Homebase',
-        url: 'https://tezos-homebase.herokuapp.com/explorer/daos',
+        url: 'https://tezos-homebase.io/',
       },
       {
         Image: require('../../../static/img/radion_logo.png').default,


Test patch:
diff --git a/packages/taquito-local-forging/test/allTestsCases.ts b/packages/taquito-local-forging/test/allTestsCases.ts
index 7a0bebdd8..ee12ba357 100644
--- a/packages/taquito-local-forging/test/allTestsCases.ts
+++ b/packages/taquito-local-forging/test/allTestsCases.ts
@@ -445,6 +445,343 @@ export const commonCases: TestCase[] = [
       ],
     },
   },
+  {
+    name: 'Kukai reported issue #1592 - bytes in the input is upper-case',
+    operation: {
+      branch: 'BKsV8h3bdnnqxYP4xEx52QeEdB9XqhBXuy314CZ7e2zTkXACLBs',
+      contents: [
+        {
+          kind: OpKind.TRANSACTION,
+          counter: '392495',
+          source: 'tz1UeT3VS8LuAkvB66tjQTTDP1LFf3DEC4uA',
+          fee: '7267',
+          gas_limit: '66341',
+          storage_limit: '538',
+          destination: 'KT1VgYbxiwgJPVNB7Zdht8nCMVbADeg5VpQQ',
+          amount: '0',
+          parameters: {
+            entrypoint: 'unlock',
+            value: {
+              prim: 'Pair',
+              args: [
+                {
+                  string: 'tz1UeT3VS8LuAkvB66tjQTTDP1LFf3DEC4uA'
+                },
+                {
+                  prim: 'Pair',
+                  args: [
+                    [
+                      {
+                        prim: 'Elt',
+                        args: [
+                          {
+                            int: '1494'
+                          },
+                          [
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'damage'
+                                },
+                                {
+                                  int: '700'
+                                }
+                              ]
+                            },
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'exp'
+                                },
+                                {
+                                  int: '10'
+                                }
+                              ]
+                            }
+                          ]
+                        ]
+                      },
+                      {
+                        prim: 'Elt',
+                        args: [
+                          {
+                            int: '1504'
+                          },
+                          [
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'damage'
+                                },
+                                {
+                                  int: '900'
+                                }
+                              ]
+                            },
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'exp'
+                                },
+                                {
+                                  int: '38'
+                                }
+                              ]
+                            }
+                          ]
+                        ]
+                      },
+                      {
+                        prim: 'Elt',
+                        args: [
+                          {
+                            int: '1557'
+                          },
+                          [
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'damage'
+                                },
+                                {
+                                  int: '1100'
+                                }
+                              ]
+                            },
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'exp'
+                                },
+                                {
+                                  int: '24'
+                                }
+                              ]
+                            }
+                          ]
+                        ]
+                      }
+                    ],
+                    {
+                      prim: 'Pair',
+                      args: [
+                        [],
+                        {
+                          prim: 'Pair',
+                          args: [
+                            [
+                              {
+                                bytes: '697066733A2F2F516D54666E6F35554D62384E51434475654A5A637167686E67713779566F475933467A7461744470417A5A526542'
+                              }
+                            ],
+                            {
+                              prim: 'Pair',
+                              args: [
+                                [
+                                  {
+                                    prim: 'Elt',
+                                    args: [
+                                      {
+                                        int: '2'
+                                      },
+                                      {
+                                        int: '25000000000'
+                                      }
+                                    ]
+                                  }
+                                ],
+                                {
+                                  string: 'edsigtt6Qp118ex7tMJcnWr9tjVTuCwKXS9kAbuD1LVxb5A1raQEr5Cvz4BDaC9dH1X1898DekDsqty66M45as87juCF3ge5FWM'
+                                }
+                              ]
+                            }
+                          ]
+                        }
+                      ]
+                    }
+                  ]
+                }
+              ]
+             },
+          },
+        },
+      ],
+    },
+    expected: {
+      branch: 'BKsV8h3bdnnqxYP4xEx52QeEdB9XqhBXuy314CZ7e2zTkXACLBs',
+      contents: [
+        {
+          kind: 'transaction',
+          counter: '392495',
+          source: 'tz1UeT3VS8LuAkvB66tjQTTDP1LFf3DEC4uA',
+          fee: '7267',
+          gas_limit: '66341',
+          storage_limit: '538',
+          destination: 'KT1VgYbxiwgJPVNB7Zdht8nCMVbADeg5VpQQ',
+          amount: '0',
+          parameters: {
+            entrypoint: 'unlock',
+            value: {
+              prim: 'Pair',
+              args: [
+                {
+                  string: 'tz1UeT3VS8LuAkvB66tjQTTDP1LFf3DEC4uA'
+                },
+                {
+                  prim: 'Pair',
+                  args: [
+                    [
+                      {
+                        prim: 'Elt',
+                        args: [
+                          {
+                            int: '1494'
+                          },
+                          [
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'damage'
+                                },
+                                {
+                                  int: '700'
+                                }
+                              ]
+                            },
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'exp'
+                                },
+                                {
+                                  int: '10'
+                                }
+                              ]
+                            }
+                          ]
+                        ]
+                      },
+                      {
+                        prim: 'Elt',
+                        args: [
+                          {
+                            int: '1504'
+                          },
+                          [
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'damage'
+                                },
+                                {
+                                  int: '900'
+                                }
+                              ]
+                            },
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'exp'
+                                },
+                                {
+                                  int: '38'
+                                }
+                              ]
+                            }
+                          ]
+                        ]
+                      },
+                      {
+                        prim: 'Elt',
+                        args: [
+                          {
+                            int: '1557'
+                          },
+                          [
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'damage'
+                                },
+                                {
+                                  int: '1100'
+                                }
+                              ]
+                            },
+                            {
+                              prim: 'Elt',
+                              args: [
+                                {
+                                  string: 'exp'
+                                },
+                                {
+                                  int: '24'
+                                }
+                              ]
+                            }
+                          ]
+                        ]
+                      }
+                    ],
+                    {
+                      prim: 'Pair',
+                      args: [
+                        [],
+                        {
+                          prim: 'Pair',
+                          args: [
+                            [
+                              {
+                                
+                                // diff from given
+                                bytes: '697066733a2f2f516d54666e6f35554d62384e51434475654a5a637167686e67713779566f475933467a7461744470417a5a526542'
+                              }
+                            ],
+                            {
+                              prim: 'Pair',
+                              args: [
+                                [
+                                  {
+                                    prim: 'Elt',
+                                    args: [
+                                      {
+                                        int: '2'
+                                      },
+                                      {
+                                        int: '25000000000'
+                                      }
+                                    ]
+                                  }
+                                ],
+                                {
+                                  string: 'edsigtt6Qp118ex7tMJcnWr9tjVTuCwKXS9kAbuD1LVxb5A1raQEr5Cvz4BDaC9dH1X1898DekDsqty66M45as87juCF3ge5FWM'
+                                }
+                              ]
+                            }
+                          ]
+                        }
+                      ]
+                    }
+                  ]
+                }
+              ]
+             },
+          },
+        },
+      ],
+    },
+  },
   {
     name: 'Origination vote example',
     operation: {