Skip to content

Commit

Permalink
Master into 0.0.6 (#44)
Browse files Browse the repository at this point in the history
* Version changed to 0.0.5

* Fix: changing wallet seed length (#35)

* Updating NPM publish workflow (#36)

* Updating NPM release workflow permission (#37)

* Updating Repo URL in package.json (#38)

* Adding index for dist folder (#39) (#40)

* Downgrading package version (#41)

---------

Co-authored-by: yuga-cb <82042350+yuga-cb@users.noreply.github.com>
  • Loading branch information
erdimaden and yuga-cb authored May 31, 2024
1 parent f3f4638 commit 1b29d3a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm ci
- run: npm publish --provenance --access public
env:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"author": "Coinbase Inc.",
"license": "ISC",
"description": "Coinbase Platform SDK",
"version": "0.0.1",
"repository": "https://github.com/coinbase/coinbase-sdk-nodejs",
"version": "0.0.4",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/coinbase/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export class Wallet {
switch (seed) {
case undefined: {
const mnemonic = bip39.generateMnemonic();
const seedBuffer = bip39.mnemonicToSeedSync(mnemonic);
const seedBuffer = bip39.mnemonicToSeedSync(mnemonic).subarray(0, 32);
return {
seed: seedBuffer.toString("hex"),
master: HDKey.fromMasterSeed(seedBuffer),
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./coinbase/coinbase";

0 comments on commit 1b29d3a

Please sign in to comment.