Bladeren bron

Semi-annual update of substrate links

Signed-off-by: Sean Young <sean@mess.org>
Sean Young 4 jaren geleden
bovenliggende
commit
566516efef
3 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 3 3
      README.md
  2. 2 2
      docs/language.rst
  3. 1 1
      stdlib/substrate.c

+ 3 - 3
README.md

@@ -51,9 +51,9 @@ Alternatively if you want to use the solang docker image, run:
 ```
 docker run --rm -it -v $(pwd):/sources hyperledgerlabs/solang -v -o /sources  --target substrate /sources/flipper.sol
 ```
-You will have a file called flipper.contact. You can use this directly in
-the [Polkadot UI](https://substrate.dev/substrate-contracts-workshop/#/0/deploying-your-contract?id=putting-your-code-on-the-blockchain), as if your smart
-contract was written using ink!.
+You will have a file called flipper.contract. You can use this directly in
+the [Polkadot UI](https://substrate.dev/substrate-contracts-workshop/#/0/deploy-contract),
+as if your smart contract was written using ink!.
 
 ## License
 

+ 2 - 2
docs/language.rst

@@ -597,7 +597,7 @@ be reflected in the current function. For example:
   32 bytes. However, since ``bytes32`` is a primitive in itself, this will only be 32
   bytes when ABI encoded.
 
-  In Substrate, the `SCALE <https://substrate.dev/docs/en/overview/low-level-data-format>`_
+  In Substrate, the `SCALE <https://substrate.dev/docs/en/knowledgebase/advanced/codec>`_
   encoding uses 32 bytes for both types.
 
 Dynamic Length Arrays
@@ -3001,7 +3001,7 @@ _________________________
 
 The ABI encoding depends on the target being compiled for. Substrate uses the
 `SCALE Codec <https://substrate.dev/docs/en/knowledgebase/advanced/codec>`_ and ewasm uses
-`Ethereum ABI encoding <https://substrate.dev/docs/en/knowledgebase/advanced/codec>`_.
+`Ethereum ABI encoding <https://docs.soliditylang.org/en/v0.7.6/abi-spec.html>`_.
 
 abi.decode(bytes, (*type-list*))
 ++++++++++++++++++++++++++++++++

+ 1 - 1
stdlib/substrate.c

@@ -4,7 +4,7 @@
 #include "stdlib.h"
 
 // 32 bit integer as as scale compact integer
-// https://substrate.dev/docs/en/conceptual/core/codec#vectors-lists-series-sets
+// https://substrate.dev/docs/en/knowledgebase/advanced/codec#compactgeneral-integers
 uint8_t *compact_encode_u32(uint8_t *dest, uint32_t val)
 {
     if (val < 64)