@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../controllers/Transactions.tsx"],"names":[],"mappings":"
|
|
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(
|
|
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);
|