Skip to content

Commit

Permalink
fix: encode enums correctly (#156)
Browse files Browse the repository at this point in the history
Updates protons and regenerates protobuf code to encode enums correctly
  • Loading branch information
achingbrain authored May 10, 2022
1 parent 28a9df7 commit 9267f06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
"generate": "protons src/pb/ipns.proto"
},
"dependencies": {
"@libp2p/crypto": "^0.22.10",
"@libp2p/crypto": "^0.22.12",
"@libp2p/interfaces": "^1.3.20",
"@libp2p/logger": "^1.1.3",
"@libp2p/peer-id": "^1.1.9",
Expand All @@ -170,7 +170,7 @@
"err-code": "^3.0.1",
"interface-datastore": "^6.0.2",
"multiformats": "^9.4.5",
"protons-runtime": "^1.0.3",
"protons-runtime": "^1.0.4",
"timestamp-nano": "^1.0.0",
"uint8arrays": "^3.0.0"
},
Expand All @@ -179,7 +179,7 @@
"@types/debug": "^4.1.5",
"aegir": "^37.0.11",
"npm-run-all": "^4.1.5",
"protons": "3.0.3",
"protons": "3.0.4",
"rimraf": "^3.0.2",
"util": "^0.12.3"
}
Expand Down
6 changes: 5 additions & 1 deletion src/pb/ipns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ export namespace IpnsEntry {
EOL = 'EOL'
}

enum __ValidityTypeValues {
EOL = 0
}

export namespace ValidityType {
export const codec = () => {
return enumeration<typeof ValidityType>(ValidityType)
return enumeration<typeof ValidityType>(__ValidityTypeValues)
}
}

Expand Down

0 comments on commit 9267f06

Please sign in to comment.