-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Program and tests written for minting token #1
Conversation
Yea I'm sure there's some fancy Github workflow option but we usually just throw |
is this what you're hitting in the tests?
|
#2 looks like it should fix the above, but I get a new and exciting error now --
looking into it... |
ah ok so for this other error i think you need these changes -- diff --git a/Anchor.toml b/Anchor.toml
index 9bf3ac1..9e62d44 100644
--- a/Anchor.toml
+++ b/Anchor.toml
@@ -2,7 +2,7 @@
seeds = false
[programs.localnet]
-karma = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
+karma_token = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
[registry]
url = "https://anchor.projectserum.com"
diff --git a/Cargo.lock b/Cargo.lock
index 34440dd..9a83057 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -649,7 +649,7 @@ dependencies = [
]
[[package]]
-name = "karma"
+name = "karma_token"
version = "0.1.0"
dependencies = [
"anchor-lang",
diff --git a/package.json b/package.json
index 20973c1..0e288ed 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
"chai": "^4.3.4",
"mocha": "^9.0.3",
"prettier": "^2.6.2",
- "ts-mocha": "^8.0.0",
+ "ts-mocha": "^10.0.0",
"typescript": "^4.3.5"
}
}
diff --git a/programs/karma/Cargo.toml b/programs/karma/Cargo.toml
index 44fda3f..ece1df0 100644
--- a/programs/karma/Cargo.toml
+++ b/programs/karma/Cargo.toml
@@ -1,12 +1,12 @@
[package]
-name = "karma"
+name = "karma_token"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"
[lib]
crate-type = ["cdylib", "lib"]
-name = "karma"
+name = "karma_token" probably anchor is confused about the rename karma -> karma_token . Anchor autogenerates a lot of stuff based on those names so you have to watch them closely |
@nathanleclaire did the test pass without you making any changes to the karmaTokan.ts test file itself? |
@sammanadh Yea. Are you hitting a new issue? |
@nathanleclaire Yeah.
Its on line 17 in
Currently using localnet. Have deployed the program successfully there. Don't know why I am still getting this error. Planning to work on devnet once and see if the error persists there as well. |
@nathanleclaire Finally, tests are passing successfully. Somehow, I had messed up copying the program id. Stupid mistake. |
Just wrote a simple program and test case for minting token. THIS IS A DRAFT PR, NOT FOR MERGING. didn't see a draft option while creating a pr. I guess it has to be enabled or something.