Skip to content

Commit dc25914

Browse files
authored
Merge pull request #84 from solana-developers/check-transferring-flag
Add isTransferring check to transfer hook examples
2 parents a3b87a4 + 9bb1e59 commit dc25914

File tree

15 files changed

+4268
-3283
lines changed

15 files changed

+4268
-3283
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
[toolchain]
2-
3-
[features]
4-
seeds = false
5-
skip-lint = false
61

72
[programs.localnet]
8-
transfer_hook = "DrWbQtYJGtsoRwzKqAbHKHKsCJJfpysudF39GBVFSxub"
3+
transfer_hook = "1qahDxKHeCLZhbBU2NyMU6vQCQmEUmdeSEBrG5drffK"
94

105
[registry]
116
url = "https://api.apr.dev"
@@ -15,4 +10,5 @@ cluster = "Localnet"
1510
wallet = "~/.config/solana/id.json"
1611

1712
[scripts]
18-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
13+
test = "yarn run ts-mocha -p ./tsconfig.json -t 100000 tests/**/*.ts"
14+

tokens/token-2022/transfer-hook/counter/anchor/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
"dependencies": {
77
"@coral-xyz/anchor": "^0.30.0",
88
"@solana/spl-token": "^0.4.0",
9-
"@solana/web3.js": "^1.89.1"
9+
"@solana/web3.js": "^1.92.3"
1010
},
1111
"devDependencies": {
1212
"@types/bn.js": "^5.1.0",
13+
"@types/chai-as-promised": "^7.1.8",
14+
"chai-as-promised": "^7.1.2",
1315
"@types/chai": "^4.3.0",
14-
"@types/mocha": "^9.0.0",
1516
"chai": "^4.3.4",
17+
"@types/mocha": "^9.0.0",
1618
"mocha": "^9.0.3",
1719
"prettier": "^2.6.2",
1820
"ts-mocha": "^10.0.0",

0 commit comments

Comments
 (0)