1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

make sure that chainId is in decimal form

This commit is contained in:
Alex Coseru 2021-11-17 15:20:07 +02:00 committed by GitHub
parent ef87473b3b
commit e3f42163a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ In Ocean, a DID is a string that looks like this:
did:op:0ebed8226ada17fde24b6bf2b95d27f8f05fcce09139ff5cec31f6d81a7cd2ea
```
The part after `did:op:` is the checksum of the ERC721 contract address and the chain the asset has been published to:
The part after `did:op:` is the checksum of the ERC721 contract address and the chainId (expressed as decimal) the asset has been published to:
```js
const checksum = sha256(ERC721 contract address + chainId)