Skip to content

Commit 59b1e25

Browse files
Fix detection of ineffective "transfer value only" events.
1 parent 4490f3f commit 59b1e25

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

server/services/constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ var (
4848

4949
transactionEventDataExecuteOnDestContext = "ExecuteOnDestContext"
5050
transactionEventDataAsyncCall = "AsyncCall"
51+
transactionEventTransferAndExecute = "TransferAndExecute"
5152
)
5253

5354
var (

server/services/transactionEventsController.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (controller *transactionEventsController) decideEffectiveEventTransferValue
7777
return nil, nil
7878
}
7979

80-
if string(event.Data) != transactionEventDataExecuteOnDestContext && string(event.Data) != transactionEventDataAsyncCall {
80+
if string(event.Data) != transactionEventDataExecuteOnDestContext && string(event.Data) != transactionEventDataAsyncCall && string(event.Data) != transactionEventTransferAndExecute {
8181
// Ineffective event, since the balance change is already captured by a SCR.
8282
return nil, nil
8383
}

systemtests/check_with_mesh_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def run_rosetta(configuration: Configuration, shard: int):
7676
f"--first-historical-epoch={current_epoch}",
7777
f"--num-historical-epochs={configuration.num_historical_epochs}",
7878
f"--activation-epoch-spica={configuration.activation_epoch_spica}",
79+
"--log-level=*:DEBUG",
7980
"--handle-contracts",
8081
"--pprof"
8182
]

version/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ const (
77

88
var (
99
// RosettaMiddlewareVersion is the version of this package (application)
10-
RosettaMiddlewareVersion = "v0.7.0"
10+
RosettaMiddlewareVersion = "v0.7.1"
1111
)

0 commit comments

Comments
 (0)