@dynamic-labs-wallet/evm 0.0.133 → 0.0.134

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/index.cjs.js CHANGED
@@ -56,16 +56,17 @@ const checkRawPublicKeyInstance = (rawPublicKey)=>{
56
56
  }
57
57
  };
58
58
  const mapTransactionToEvmTransaction = (transaction)=>{
59
- var _transaction_to;
59
+ var _transaction_to, _transaction_chainId;
60
60
  return {
61
- to: (_transaction_to = transaction.to) != null ? _transaction_to : undefined,
61
+ to: (_transaction_to = transaction.to) != null ? _transaction_to : '',
62
62
  data: transaction.data,
63
63
  gas: transaction.gas ? `0x${transaction.gas.toString(16)}` : undefined,
64
64
  gasPrice: transaction.gasPrice ? `0x${transaction.gasPrice.toString(16)}` : undefined,
65
65
  maxFeePerGas: transaction.maxFeePerGas ? `0x${transaction.maxFeePerGas.toString(16)}` : undefined,
66
66
  maxPriorityFeePerGas: transaction.maxPriorityFeePerGas ? `0x${transaction.maxPriorityFeePerGas.toString(16)}` : undefined,
67
67
  nonce: transaction.nonce,
68
- value: transaction.value ? `0x${transaction.value.toString(16)}` : undefined
68
+ value: transaction.value ? `0x${transaction.value.toString(16)}` : undefined,
69
+ chainId: (_transaction_chainId = transaction.chainId) != null ? _transaction_chainId : 0
69
70
  };
70
71
  };
71
72
 
package/index.esm.js CHANGED
@@ -54,16 +54,17 @@ const checkRawPublicKeyInstance = (rawPublicKey)=>{
54
54
  }
55
55
  };
56
56
  const mapTransactionToEvmTransaction = (transaction)=>{
57
- var _transaction_to;
57
+ var _transaction_to, _transaction_chainId;
58
58
  return {
59
- to: (_transaction_to = transaction.to) != null ? _transaction_to : undefined,
59
+ to: (_transaction_to = transaction.to) != null ? _transaction_to : '',
60
60
  data: transaction.data,
61
61
  gas: transaction.gas ? `0x${transaction.gas.toString(16)}` : undefined,
62
62
  gasPrice: transaction.gasPrice ? `0x${transaction.gasPrice.toString(16)}` : undefined,
63
63
  maxFeePerGas: transaction.maxFeePerGas ? `0x${transaction.maxFeePerGas.toString(16)}` : undefined,
64
64
  maxPriorityFeePerGas: transaction.maxPriorityFeePerGas ? `0x${transaction.maxPriorityFeePerGas.toString(16)}` : undefined,
65
65
  nonce: transaction.nonce,
66
- value: transaction.value ? `0x${transaction.value.toString(16)}` : undefined
66
+ value: transaction.value ? `0x${transaction.value.toString(16)}` : undefined,
67
+ chainId: (_transaction_chainId = transaction.chainId) != null ? _transaction_chainId : 0
67
68
  };
68
69
  };
69
70
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/evm",
3
- "version": "0.0.133",
3
+ "version": "0.0.134",
4
4
  "license": "MIT",
5
5
  "type": "commonjs",
6
6
  "dependencies": {
7
- "@dynamic-labs-wallet/browser": "0.0.133",
8
- "@dynamic-labs/sdk-api-core": "^0.0.746"
7
+ "@dynamic-labs-wallet/browser": "0.0.134",
8
+ "@dynamic-labs/sdk-api-core": "^0.0.753"
9
9
  },
10
10
  "peerDependencies": {
11
11
  "viem": "^2.22.1"
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/client/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,MAAM,CAAC;AAEpD,eAAO,MAAM,yBAAyB,iBAAkB,GAAG,SAI1D,CAAC;AAEF,eAAO,MAAM,8BAA8B,gBAC5B,uBAAuB,KACnC,yBAeD,CAAC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/client/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,MAAM,CAAC;AAEpD,eAAO,MAAM,yBAAyB,iBAAkB,GAAG,SAI1D,CAAC;AAEF,eAAO,MAAM,8BAA8B,gBAC5B,uBAAuB,KACnC,yBAgBD,CAAC"}