@vechain/vechain-kit 2.0.0-rc.5 → 2.0.0-rc.6

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  #### An all-in-one library for building VeChain applications.
2
2
 
3
3
  <div align="center">
4
- <img src="https://i.ibb.co/NgDN6XD3/kit-preview.png" alt="VeChain Kit Banner">
4
+ <img src="https://prod-vechainkit-docs-images-bucket.s3.eu-west-1.amazonaws.com/intro.png" alt="VeChain Kit Banner">
5
5
  </div>
6
6
 
7
7
  ## Introduction
package/dist/index.cjs CHANGED
@@ -4825,7 +4825,7 @@ var AddressDisplay = ({
4825
4825
 
4826
4826
  // package.json
4827
4827
  var package_default = {
4828
- version: "2.0.0-rc.5"};
4828
+ version: "2.0.0-rc.6"};
4829
4829
  var VersionFooter = ({ ...props }) => {
4830
4830
  const { darkMode: isDark } = useVeChainKitConfig();
4831
4831
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -17900,9 +17900,9 @@ var useSendTransaction = ({
17900
17900
  }
17901
17901
  const txBody = await thor.transactions.buildTransactionBody(
17902
17902
  _clauses,
17903
- estimatedGas,
17903
+ suggestedMaxGas ?? estimatedGas,
17904
+ //Provide either the suggested max gas (gas Limit) or the estimated gas
17904
17905
  {
17905
- gasLimit: suggestedMaxGas?.toString(),
17906
17906
  // TODO: kit-migration check how to pass the delegator url
17907
17907
  isDelegated: feeDelegation?.delegateAllTransactions
17908
17908
  }
@@ -19081,9 +19081,13 @@ var LegalDocumentsContext = React10.createContext(void 0);
19081
19081
  var useLegalDocuments = () => {
19082
19082
  const context = React10.useContext(LegalDocumentsContext);
19083
19083
  if (!context) {
19084
- throw new Error(
19085
- "useLegalDocuments must be used within LegalDocumentsProvider"
19086
- );
19084
+ return {
19085
+ hasAgreedToRequiredDocuments: true,
19086
+ agreements: [],
19087
+ walletAddress: void 0,
19088
+ documents: [],
19089
+ documentsNotAgreed: []
19090
+ };
19087
19091
  }
19088
19092
  return context;
19089
19093
  };