You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,25 @@
1
1
Change Log
2
2
=========
3
3
4
+
__6.0.4__
5
+
6
+
## New Features
7
+
- Improve type inference in `Contract` module when using typescript.
8
+
- The `Contract` now infers method signatures based on the provided ABI.
9
+
- To enable accurate inference, the ABI should be defined using the `as const` assertion or passed directly into tronWeb.contract().
10
+
11
+
## Change
12
+
- Change the return behavior of the `contract.new()` method.
13
+
- Previously, this method mutated the current instance and used the ABI stored on the Tron blockchain, which proved to be unreliable. It now returns a new instance that uses the ABI provided in the options parameter.
14
+
- Export `GetEventResultOptions` and `EventResponse`.
15
+
- Allow using length as the value of the name field in the ABI, but you cannot use `result['length']` to read its value.
16
+
- Bump `axios` from 1.8.3 to 1.11.0, bump `eslint` from 9.22.0 to 9.31.0.
17
+
18
+
## Bug Fixes
19
+
- Fix the issue where `addUpdateData` treats numeric strings as numbers.[#629](https://github.com/tronprotocol/tronweb/issues/629)
20
+
- Starting from TronWeb v6.0.4, `addUpdateData` will use `TronWeb.fromUtf8` to convert the provided data string—unless it starts with '0x'.
21
+
- If the resulting data string has an odd length, a '0' will be prepended to ensure even length.
22
+
4
23
__6.0.3__
5
24
- Add support for deserializing 6 more transactions.
0 commit comments