Zilliqa / ZRC

Zilliqa Reference Contracts
MIT License
40 stars 57 forks source link

docs(zrc7): data url with utf-8 encoding #162

Closed ghost closed 2 years ago

ghost commented 2 years ago

This PR includes an example for data url with utf-8 encoding.

encodeURIComponent(JSON.stringify({
  "name": "Creature #101",
  "resources": [
    { "uri": "ipfs://QmZILGa7zXUbixvYJpgkRkaSCYEBtSwgVtfzkoD3YkNsE1" }
  ]
}))

data:application/json,%7B%22name%22%3A%22Creature%20%23101%22%2C%22resources%22%3A%5B%7B%22uri%22%3A%22ipfs%3A%2F%2FQmZILGa7zXUbixvYJpgkRkaSCYEBtSwgVtfzkoD3YkNsE1%22%7D%5D%7D