ts: add provider parameter to spl token client (#1597)
This commit is contained in:
parent
552789a072
commit
b149fc522a
|
@ -15,6 +15,7 @@ incremented for features.
|
|||
|
||||
* lang: Add new `AccountSysvarMismatch` error code and test cases for sysvars ([#1535](https://github.com/project-serum/anchor/pull/1535)).
|
||||
* spl: Add support for revoke instruction ([#1493](https://github.com/project-serum/anchor/pull/1493)).
|
||||
* ts: Add provider parameter to `Spl.token` factory method ([#1597](https://github.com/project-serum/anchor/pull/1597)).
|
||||
|
||||
### Fixes
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { Program } from "../index.js";
|
||||
import { Program, Provider } from "../index.js";
|
||||
import { program as tokenProgram, SplToken } from "./token.js";
|
||||
|
||||
export { SplToken } from "./token.js";
|
||||
|
||||
export class Spl {
|
||||
public static token(): Program<SplToken> {
|
||||
return tokenProgram();
|
||||
public static token(provider?: Provider): Program<SplToken> {
|
||||
return tokenProgram(provider);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue