File tree 2 files changed +8
-11
lines changed
2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
21
21
22
22
func toError (code int , err error ) * oas.ErrorStatusCode {
23
23
msg := err .Error ()
24
- if strings .HasPrefix (err .Error (), "failed to connect to" ) {
24
+ if strings .HasPrefix (err .Error (), "failed to connect to" ) || strings . Contains ( err . Error (), "host=" ) {
25
25
msg = "unknown error"
26
26
}
27
27
return & oas.ErrorStatusCode {StatusCode : code , Response : oas.Error {Error : msg }}
Original file line number Diff line number Diff line change @@ -71,13 +71,10 @@ func fromTrace(trace *core.Trace) *Bubble {
71
71
}
72
72
var initInterfaces []abi.ContractInterface
73
73
if msg := trace .InMsg ; msg != nil {
74
- if msg .IhrFee > 0 {
75
- // We want to include ihr_fee into msg.Value
76
- msg .Value += msg .IhrFee
77
- }
78
74
btx .bounce = msg .Bounce
79
75
btx .bounced = msg .Bounced
80
- btx .inputAmount = msg .Value
76
+ btx .inputAmount += msg .Value
77
+ btx .inputAmount += msg .IhrFee
81
78
btx .opCode = msg .OpCode
82
79
btx .decodedBody = msg .DecodedBody
83
80
btx .inputFrom = source
@@ -111,11 +108,11 @@ func fromTrace(trace *core.Trace) *Bubble {
111
108
// That's why we add tons here
112
109
b .ValueFlow .AddTons (trace .Account , - c .InMsg .Value )
113
110
}
114
- if c . InMsg . IhrFee > 0 {
115
- // We want to include ihr_fee into msg.Value
116
- aggregatedFee -= c .InMsg .IhrFee
117
- b .ValueFlow .Accounts [trace .Account ].Ton -= c .InMsg .IhrFee
118
- }
111
+
112
+ // We want to include ihr_fee into msg.Value
113
+ aggregatedFee -= c .InMsg .IhrFee
114
+ b .ValueFlow .Accounts [trace .Account ].Ton -= c .InMsg .IhrFee
115
+
119
116
b .Children [i ] = fromTrace (c )
120
117
}
121
118
if actionPhase := trace .Transaction .ActionPhase ; actionPhase != nil {
You can’t perform that action at this time.
0 commit comments