@cordystackx/cordy_minikit 1.3.1 → 1.3.2

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
@@ -50,7 +50,6 @@ Create a `.env.local` file in your project root:
50
50
  ```bash
51
51
  NEXT_PUBLIC_RPC_ENDPOINT=https://your-rpc-endpoint.com
52
52
  NEXT_PUBLIC_TOKENADDRESS=0x...
53
- NEXT_PUBLIC_PLATFORM_ADDRESS=0x...
54
53
  NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_project_id
55
54
  ```
56
55
 
@@ -1 +1 @@
1
- {"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../controllers/Transactions.tsx"],"names":[],"mappings":"AAMA,wBAA8B,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,oBAmC1E"}
1
+ {"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../controllers/Transactions.tsx"],"names":[],"mappings":"AAKA,wBAA8B,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,oBAmC1E"}
@@ -1,7 +1,6 @@
1
1
  import { ethers, parseUnits } from 'ethers';
2
2
  import tokenAbi from '../config/ERC20_ABI.json';
3
3
  const tokenAddress = process.env.NEXT_PUBLIC_TOKENADDRESS || "";
4
- const platformAddress = process.env.NEXT_PUBLIC_PLATFORM_ADDRESS || "";
5
4
  export default async function CordyStackTrans(address, cost) {
6
5
  if (!address) {
7
6
  console.error("Address Not Found");
@@ -18,7 +17,7 @@ export default async function CordyStackTrans(address, cost) {
18
17
  console.log("Insuficient Funds");
19
18
  return false;
20
19
  }
21
- const tx = await tokenContract.transfer(platformAddress, amount);
20
+ const tx = await tokenContract.transfer(address, amount);
22
21
  const receipt = await tx.wait();
23
22
  if (receipt) {
24
23
  console.log("Transaction Complete TX hash", receipt);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cordystackx/cordy_minikit",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"