Skip to content

Commit 2f2cee6

Browse files
authored
Merge pull request #230 from tronprotocol/release/3.4.2
Release/3.4.2
2 parents 27ad323 + 56d3359 commit 2f2cee6

File tree

9 files changed

+4420
-6
lines changed

9 files changed

+4420
-6
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
__3.4.2_
2+
* Add support for Solidity compiler 0.8.20
3+
* Add `debug_traceTransaction` && `debug_storageRangeAt` function to debug environment for supporting [tronbox/tre](https://hub.docker.com/r/tronbox/tre) docker image.
4+
`debug_traceTransaction`:
5+
```javascript
6+
const txid = "f6b72dda65682b858c1c1980710aad7955fbf6db91c66840da0f852fc3cc694b";
7+
const result = await tronWrap.send("debug_traceTransaction", [txid]);
8+
console.log(result);
9+
```
10+
`debug_storageRangeAt`:
11+
```javascript
12+
const result = await tronWrap.send("debug_storageRangeAt", [0, 0,contractAddress,'0x01', 1]);
13+
console.log(result);
14+
```
15+
116
__3.4.1__
217
* Add support for Solidity compiler 0.8.21
318
* Bump tronweb from 5.1.0 to 5.3.0

FURTHER_INFO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ You can find the signature public key [here](https://keybase.io/tronbox/pgp_keys
6161
0.8.7
6262
0.8.11
6363
0.8.18
64-
0.8.21
64+
0.8.20
6565
```
6666

6767
For more versions details: https://github.com/tronprotocol/solidity/releases

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tronbox",
33
"namespace": "tronprotocol",
4-
"version": "3.4.1",
4+
"version": "3.4.2",
55
"description": "TronBox - Simple development framework for Tron",
66
"keywords": [
77
"TronBox",

src/components/TronSolc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ let supportedVersions = [
3131
'0.8.7',
3232
'0.8.11',
3333
'0.8.18',
34-
'0.8.21'
34+
'0.8.20'
3535
];
3636

37-
const maxVersion = '0.8.21';
37+
const maxVersion = '0.8.20';
3838

3939
function getWrapper(options = {}) {
4040
try {

src/components/TronWrap/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ function init(options, extraOptions = {}) {
446446
case 'tre_setAccountCode':
447447
case 'tre_mine':
448448
case 'tre_blockTime':
449+
case 'debug_traceTransaction':
450+
case 'debug_storageRangeAt':
449451
return _send();
450452
case 'tre_unlockedAccounts': {
451453
const result = await _send();

test/tre/contracts/Migrations.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ contract Migrations {
99
if (msg.sender == owner) _;
1010
}
1111

12-
constructor() public {
12+
constructor() {
1313
owner = msg.sender;
1414
}
1515

test/tre/test/helpers/shallowEqual.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const assert = require('assert');
2+
3+
function shallowEqual(actual, expected, message) {
4+
const actualKeys = Object.keys(actual);
5+
const expectedKeys = Object.keys(expected);
6+
7+
assert.deepStrictEqual(actualKeys, expectedKeys, `${message}: Keys do not match`);
8+
9+
for (const key of actualKeys) {
10+
const actualValue = actual[key];
11+
const expectedValue = expected[key];
12+
13+
if (key === 'memory' || key === 'stack' || key === 'storage') {
14+
continue;
15+
}
16+
17+
if (typeof actualValue === 'object' && typeof expectedValue === 'object') {
18+
shallowEqual(actualValue, expectedValue, message);
19+
continue;
20+
}
21+
22+
assert.strictEqual(actualValue, expectedValue, `${message}: Values for key '${key}' do not match`);
23+
}
24+
}
25+
26+
module.exports = shallowEqual;

0 commit comments

Comments
 (0)