Skip to content

Commit

Permalink
ts: Export sighash coder
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante committed Mar 5, 2021
1 parent c6552e8 commit 734c751
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ incremented for features.
## Features

* ts: Allow preloading instructions for state rpc transactions ([cf9c84](https://github.com/project-serum/anchor/commit/cf9c847e4144989b5bc1936149d171e90204777b)).
* ts: Export sighash coder function.
* cli: Specify programs to embed into local validator genesis via Anchor.toml while testing.
* cli: Allow skipping the creation of a local validator when testing against localnet.
* cli: Adds support for tests with Typescript ([#94](https://github.com/project-serum/anchor/pull/94)).
Expand Down
2 changes: 1 addition & 1 deletion ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@project-serum/anchor",
"version": "0.2.2-beta.1",
"version": "0.2.2-beta.2",
"description": "Anchor client",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 4 additions & 0 deletions ts/src/coder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ export default class Coder {
this.state = new StateCoder(idl);
}
}

public sighash(nameSpace: string, ixName: string): Buffer {
return sighash(nameSpace, ixName);
}
}

/**
Expand Down

0 comments on commit 734c751

Please sign in to comment.