Skip to content

Commit b3232a8

Browse files
committed
525
1 parent 130b519 commit b3232a8

File tree

1 file changed

+4
-3
lines changed
  • website/src/pages/en/subgraphs/developing/creating/graph-ts

1 file changed

+4
-3
lines changed

website/src/pages/en/subgraphs/developing/creating/graph-ts/api.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ mapping:
518518
file: ./abis/OtherContract.json
519519
```
520520
521-
- import and bind to the contract using its address.
521+
- Import and bind to the contract using its address
522522
523523
#### Handling Reverted Calls
524524
@@ -792,6 +792,7 @@ When the type of a value is certain, it can be converted to a [built-in type](#b
792792
| BigInt | BigDecimal | s.toBigDecimal() |
793793
| BigInt | String (hexadecimal) | s.toHexString() or s.toHex() |
794794
| BigInt | String (unicode) | s.toString() |
795+
| BigInt | Bytes | s.fromBigInt() |
795796
| BigInt | i32 | s.toI32() |
796797
| Boolean | Boolean | none |
797798
| Bytes (signed) | BigInt | BigInt.fromSignedBytes(s) |
@@ -820,8 +821,8 @@ When the type of a value is certain, it can be converted to a [built-in type](#b
820821
| Bytes | Address | Address.fromBytes(s) |
821822
| String | BigInt | BigInt.fromString(s) |
822823
| String | BigDecimal | BigDecimal.fromString(s) |
823-
| String (hexadecimal) | Bytes | Bytes.fromHexString(s) |
824-
| String (UTF-8) | Bytes | Bytes.fromUTF8(s) |
824+
| String (hexadecimal) | Bytes | Bytes.fromHexString(s) |
825+
| String (UTF-8) | Bytes | Bytes.fromUTF8(s) |
825826

826827
### Data Source Metadata
827828

0 commit comments

Comments
 (0)