@cryptorubic/web3 1.7.3-alpha.zkevm.1 → 1.7.3-alpha.zkevm.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptorubic/web3",
3
- "version": "1.7.3-alpha.zkevm.1",
3
+ "version": "1.7.3-alpha.zkevm.2",
4
4
  "dependencies": {
5
5
  "@ethersproject/bignumber": "^5.8.0",
6
6
  "@mysten/sui": "^1.24.0",
@@ -30,9 +30,10 @@ class TonAdapterSigner extends abstract_adapter_signer_1.AbstractAdapterSigner {
30
30
  }
31
31
  async sendTransaction(params) {
32
32
  try {
33
+ const normalizedMessages = params.txOptions.messages.map((msg) => core_2.Address.isFriendly(msg.address) ? msg : { ...msg, address: core_2.Address.normalize(msg.address) });
33
34
  const { boc } = await this.wallet.sendTransaction({
34
35
  validUntil: Math.floor(Date.now() / 1000) + 360,
35
- messages: params.txOptions.messages
36
+ messages: normalizedMessages
36
37
  });
37
38
  const txHash = this.fromBocToBase64Hash(boc);
38
39
  params.txOptions.onTransactionHash?.(txHash);