@gnosis.pm/safe-apps-provider
Advanced tools
Comparing version 0.14.0 to 0.15.0
# @gnosis.pm/safe-apps-provider | ||
## 0.15.0 | ||
### Minor Changes | ||
- 6762218: Pass the gas limit to `safeTxGas` when sending a transaction through the Safe app provider | ||
## 0.14.0 | ||
@@ -4,0 +10,0 @@ |
@@ -63,2 +63,3 @@ "use strict"; | ||
txs: [tx], | ||
params: { safeTxGas: tx.gas }, | ||
}); | ||
@@ -65,0 +66,0 @@ // Store fake transaction |
@@ -19,4 +19,4 @@ /// <reference types="node" /> | ||
} | ||
export declare type ProviderChainId = string; | ||
export declare type ProviderAccounts = string[]; | ||
export type ProviderChainId = string; | ||
export type ProviderAccounts = string[]; | ||
export interface EIP1193Provider extends EventEmitter { | ||
@@ -23,0 +23,0 @@ connect(params?: any): Promise<void>; |
{ | ||
"name": "@gnosis.pm/safe-apps-provider", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "A provider wrapper of Safe Apps SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -65,4 +65,10 @@ # Safe Apps Provider | ||
#### More scenarios | ||
### A note on gas limit | ||
The ethereum transaction gas limit passed to the safe-apps-provider will be treated as safeTxGas, which is an equivalent of the ethereum transaction gas limit in the Safe context. To learn more about the safe transaction gas, read here: | ||
https://github.com/safe-global/safe-contracts/blob/c36bcab46578a442862d043e12a83fec41143dec/docs/safe_tx_gas.md | ||
If you don't want to pass a calculation and leave it to the Safe, pass 0 as the gas limit. | ||
### More scenarios | ||
For the SDK overview documentation, please refer to the [safe-apps-sdk](https://github.com/gnosis/safe-apps-sdk/) documentation |
@@ -90,2 +90,3 @@ import SafeAppsSDK, { SafeInfo, Web3TransactionObject } from '@gnosis.pm/safe-apps-sdk'; | ||
txs: [tx], | ||
params: { safeTxGas: tx.gas }, | ||
}); | ||
@@ -92,0 +93,0 @@ // Store fake transaction |
Sorry, the diff of this file is not supported yet
29549
406
74