@gnosis.pm/safe-apps-provider
Advanced tools
Comparing version 0.15.0 to 0.15.1
# @gnosis.pm/safe-apps-provider | ||
## 0.15.1 | ||
### Patch Changes | ||
- b6c00b8: Convert gaslimit hex-encoded string to a decimal number | ||
## 0.15.0 | ||
@@ -4,0 +10,0 @@ |
@@ -61,2 +61,8 @@ "use strict"; | ||
const tx = Object.assign({ value: '0', data: '0x' }, params[0]); | ||
// Some ethereum libraries might pass the gas as a hex-encoded string | ||
// We need to convert it to a number because the SDK expects a number and our backend only supports | ||
// Decimal numbers | ||
if (typeof tx.gas === 'string' && tx.gas.startsWith('0x')) { | ||
tx.gas = parseInt(tx.gas, 16); | ||
} | ||
const resp = await this.sdk.txs.send({ | ||
@@ -63,0 +69,0 @@ txs: [tx], |
{ | ||
"name": "@gnosis.pm/safe-apps-provider", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"description": "A provider wrapper of Safe Apps SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -88,2 +88,9 @@ import SafeAppsSDK, { SafeInfo, Web3TransactionObject } from '@gnosis.pm/safe-apps-sdk'; | ||
// Some ethereum libraries might pass the gas as a hex-encoded string | ||
// We need to convert it to a number because the SDK expects a number and our backend only supports | ||
// Decimal numbers | ||
if (typeof tx.gas === 'string' && tx.gas.startsWith('0x')) { | ||
tx.gas = parseInt(tx.gas, 16); | ||
} | ||
const resp = await this.sdk.txs.send({ | ||
@@ -93,2 +100,3 @@ txs: [tx], | ||
}); | ||
// Store fake transaction | ||
@@ -95,0 +103,0 @@ this.submittedTxs.set(resp.safeTxHash, { |
Sorry, the diff of this file is not supported yet
30577
418