fixed undelegate rosetta log

pull/4065/head
haodi 3 years ago
parent a8122bb52f
commit a99c785b56
  1. 4
      core/evm.go

@ -252,7 +252,9 @@ func UndelegateFn(ref *block.Header, chain ChainContext) vm.UndelegateFunc {
rosettaTracer.AddRosettaLog(
vm.CALL,
&vm.RosettaLogAddressItem{
Account: &undelegate.DelegatorAddress,
Account: &undelegate.DelegatorAddress,
SubAccount: &undelegate.ValidatorAddress,
Metadata: map[string]interface{}{"type": "delegation"},
},
&vm.RosettaLogAddressItem{
Account: &undelegate.DelegatorAddress,

Loading…
Cancel
Save