@rabby-wallet/gnosis-sdk 1.0.3 → 1.1.0
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/index.js +2 -1
- package/package.json +2 -1
- package/src/index.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Contract } from "ethers";
|
|
2
2
|
import { BigNumber } from "@ethersproject/bignumber";
|
|
3
|
+
import BN from 'bignumber.js';
|
|
3
4
|
import { getSafeSingletonDeployment } from "@gnosis.pm/safe-deployments";
|
|
4
5
|
import { toChecksumAddress } from "web3-utils";
|
|
5
6
|
import SafeTransaction from "@gnosis.pm/safe-core-sdk/dist/src/utils/transactions/SafeTransaction";
|
|
@@ -96,7 +97,7 @@ class Safe {
|
|
|
96
97
|
await this.request.postTransactions(this.safeAddress, {
|
|
97
98
|
safe: safeAddress,
|
|
98
99
|
to: toChecksumAddress(transaction.data.to),
|
|
99
|
-
value:
|
|
100
|
+
value: new BN(transaction.data.value).toFixed(),
|
|
100
101
|
data: transaction.data.data,
|
|
101
102
|
operation: transaction.data.operation,
|
|
102
103
|
gasToken: transaction.data.gasToken,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rabby-wallet/gnosis-sdk",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"@gnosis.pm/safe-core-sdk-types": "^0.1.1",
|
|
19
19
|
"@gnosis.pm/safe-deployments": "^1.4.0",
|
|
20
20
|
"axios": "^0.24.0",
|
|
21
|
+
"bignumber.js": "^9.0.2",
|
|
21
22
|
"ethereumjs-util": "^7.1.3",
|
|
22
23
|
"ethers": "^5.5.1",
|
|
23
24
|
"typescript": "^4.4.4",
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Contract } from "ethers";
|
|
2
2
|
import { BigNumber } from "@ethersproject/bignumber";
|
|
3
|
+
import BN from 'bignumber.js';
|
|
3
4
|
import { getSafeSingletonDeployment } from "@gnosis.pm/safe-deployments";
|
|
4
5
|
import { providers } from "ethers";
|
|
5
6
|
import { toChecksumAddress } from "web3-utils";
|
|
@@ -161,7 +162,7 @@ class Safe {
|
|
|
161
162
|
await this.request.postTransactions(this.safeAddress, {
|
|
162
163
|
safe: safeAddress,
|
|
163
164
|
to: toChecksumAddress(transaction.data.to),
|
|
164
|
-
value:
|
|
165
|
+
value: new BN(transaction.data.value).toFixed(),
|
|
165
166
|
data: transaction.data.data,
|
|
166
167
|
operation: transaction.data.operation,
|
|
167
168
|
gasToken: transaction.data.gasToken,
|