diff --git a/README.md b/README.md index 6cb9eaa..c9145af 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ const tokenOutAddress = tokens["usdc"].address; const tokenInDecimals = tokens["eth"].decimals; const inputAmount = BigNumber.from(parseUnits("1", tokenInDecimals)); -// Usege on your website +// Usage on your website const starknet = await connect({ showList: false }) @@ -128,7 +128,7 @@ const approveCall:Call = await fibrous.buildApprove( tokenInAddress, ); -await account.execute([approveToken, swapCall]) +await account.execute([approveCall, swapCall]) ``` diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index fda4731..c9ea917 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -47,7 +47,7 @@ Please adhere to the following guidelines when submitting code: ## License -By contributing to this project, you agree that your contributions will be licensed under the [project's license](../LICENCE). +By contributing to this project, you agree that your contributions will be licensed under the [project's license](../LICENSE). ## Conclusion diff --git a/examples/package.json b/examples/package.json index 53c0e77..8f50c7d 100644 --- a/examples/package.json +++ b/examples/package.json @@ -1,6 +1,6 @@ { "name": "fibrous-sdk-examples", - "version": "0.2.0", + "version": "0.3.4", "description": "Examples for using Fibrous SDK", "main": "index.js", "author": "kermo & zetsuboii", diff --git a/examples/src/account.ts b/examples/src/account.ts index 4163c8d..e379136 100644 --- a/examples/src/account.ts +++ b/examples/src/account.ts @@ -1,4 +1,4 @@ -import { Account, CairoVersion, Provider } from "starknet"; +import { Account, CairoVersion, RpcProvider, constants } from "starknet"; export function account( privateKey: string, @@ -8,12 +8,9 @@ export function account( enum NetworkName { SN_MAIN = "SN_MAIN", SN_GOERLI = "SN_GOERLI", - SN_GOERLI2 = "SN_GOERLI2", } - const provider = new Provider({ - sequencer: { - network: NetworkName.SN_MAIN, - }, + const provider = new RpcProvider({ + nodeUrl: constants.NetworkName.SN_MAIN }); const account0 = new Account( provider,