-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(issuer): Smart Contract Improvements #2341
Conversation
…ivate Issuer contract BREAKING CHANGE: There is a new set of Issuer and Registry smart contracts that is based on OpenZeppelin's ERC-1155 contracts and not backwards compatible with the previous smart contracts
…s in Issuer and Registry smart contracts
… OpenZeppelin instead of Origin implementation BREAKING CHANGE: New smart contracts incompatible with the previous smart contracts
9f85c23
to
9cf5489
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really useful comments, but I don't understand what's happening here :/
packages/traceability/issuer-api/src/pods/blockchain/blockchain-properties.dto.ts
Show resolved
Hide resolved
|
||
wrap(signerOrPrivateKey?: Signer | string): IBlockchainProperties { | ||
const web3 = getProviderWithFallback(this.rpcNode, this.rpcNodeFallback); | ||
const web3 = getProviderWithFallback( | ||
...[this.rpcNode, this.rpcNodeFallback].filter((url) => !!url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a super NIT, but for that kind of functions it's nice to have a helper. lodash has compact
.
For this case though maybe you consider .filter(Boolean)
since it better explains intention? It's just my opinion though.
PrivateIssuer.sol
encodeData
anddecodeData
from smart contracts, since we now have an off-chain implementationprivateIssuer
contract as an optional contract toBlockchainProperties