add test for fallback function
}],
"expectedLogs": [{}],
"comment": "call deposit"
+ }, {
+ "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
+ "rawByteCode": "",
+ "rawAmount": "120000",
+ "rawGasLimit": 1000000,
+ "rawGasPrice": "0",
+ "expectedBalances": [{
+ "account": "io1emxf8zzqckhgjde6dqd97ts0y3q496gm3fdrl6",
+ "rawBalance": "210000"
+ }, {
+ "account": "",
+ "rawBalance": "20000"
+ }],
+ "expectedLogs": [{}],
+ "comment": "call deposit"
}, {
"rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
"rawByteCode": "d0e30db0",
"failed": true,
"expectedBalances": [{
"account": "io1emxf8zzqckhgjde6dqd97ts0y3q496gm3fdrl6",
- "rawBalance": "100000"
+ "rawBalance": "210000"
}, {
"account": "",
- "rawBalance": "10000"
+ "rawBalance": "20000"
}],
"expectedLogs": [],
"comment": "call deposit msg.value < minAmount + depositFee"
"failed": true,
"expectedBalances": [{
"account": "io1emxf8zzqckhgjde6dqd97ts0y3q496gm3fdrl6",
- "rawBalance": "100000"
+ "rawBalance": "210000"
}, {
"account": "",
- "rawBalance": "10000"
+ "rawBalance": "20000"
}],
"expectedLogs": [],
"comment": "call deposit msg.value>maxAmount + depositFee"
"rawGasPrice": "0",
"expectedBalances": [{
"account": "io1emxf8zzqckhgjde6dqd97ts0y3q496gm3fdrl6",
- "rawBalance": "100000"
+ "rawBalance": "210000"
}, {
"account": "",
- "rawBalance": "9900"
+ "rawBalance": "19900"
}],
"expectedLogs": [],
"comment": "call withdraw 100"
"failed": true,
"expectedBalances": [{
"account": "io1emxf8zzqckhgjde6dqd97ts0y3q496gm3fdrl6",
- "rawBalance": "100000"
+ "rawBalance": "210000"
}, {
"account": "",
- "rawBalance": "9900"
+ "rawBalance": "19900"
}],
"expectedLogs": [],
"comment": "call withdraw 20000, expect failed"
