@nibgate/sdk 0.2.16 → 0.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nibgate.js CHANGED
@@ -1229,7 +1229,21 @@ var Nibgate = (() => {
1229
1229
  network,
1230
1230
  signer: {
1231
1231
  address: currentAddress,
1232
- signTypedData: (typedData) => evm.request({ method: "eth_signTypedData_v4", params: [currentAddress, stringifyJson(typedData)] })
1232
+ signTypedData: (typedData) => {
1233
+ const enriched = {
1234
+ ...typedData,
1235
+ types: {
1236
+ EIP712Domain: [
1237
+ { name: "name", type: "string" },
1238
+ { name: "version", type: "string" },
1239
+ { name: "chainId", type: "uint256" },
1240
+ { name: "verifyingContract", type: "address" }
1241
+ ],
1242
+ ...typedData.types
1243
+ }
1244
+ };
1245
+ return evm.request({ method: "eth_signTypedData_v4", params: [currentAddress, stringifyJson(enriched)] });
1246
+ }
1233
1247
  },
1234
1248
  clientModule: options.circleClientModule
1235
1249
  });