Skip to content

Commit 734c751

Browse files
ts: Export sighash coder
1 parent c6552e8 commit 734c751

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ incremented for features.
1414
## Features
1515

1616
* ts: Allow preloading instructions for state rpc transactions ([cf9c84](https://github.com/project-serum/anchor/commit/cf9c847e4144989b5bc1936149d171e90204777b)).
17+
* ts: Export sighash coder function.
1718
* cli: Specify programs to embed into local validator genesis via Anchor.toml while testing.
1819
* cli: Allow skipping the creation of a local validator when testing against localnet.
1920
* cli: Adds support for tests with Typescript ([#94](https://github.com/project-serum/anchor/pull/94)).

ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@project-serum/anchor",
3-
"version": "0.2.2-beta.1",
3+
"version": "0.2.2-beta.2",
44
"description": "Anchor client",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

ts/src/coder.ts

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export default class Coder {
5959
this.state = new StateCoder(idl);
6060
}
6161
}
62+
63+
public sighash(nameSpace: string, ixName: string): Buffer {
64+
return sighash(nameSpace, ixName);
65+
}
6266
}
6367

6468
/**

0 commit comments

Comments
 (0)