|
|
@ -218,11 +218,13 @@ func DelegateFn(ref *block.Header, chain ChainContext) vm.DelegateFunc { |
|
|
|
|
|
|
|
|
|
|
|
//add rosetta log
|
|
|
|
//add rosetta log
|
|
|
|
if rosettaTracer != nil { |
|
|
|
if rosettaTracer != nil { |
|
|
|
|
|
|
|
// copy from address
|
|
|
|
|
|
|
|
fromAccount := common.BytesToAddress(key.Bytes()) |
|
|
|
rosettaTracer.AddRosettaLog( |
|
|
|
rosettaTracer.AddRosettaLog( |
|
|
|
vm.CALL, |
|
|
|
vm.CALL, |
|
|
|
&vm.RosettaLogAddressItem{ |
|
|
|
&vm.RosettaLogAddressItem{ |
|
|
|
Account: &delegate.DelegatorAddress, |
|
|
|
Account: &delegate.DelegatorAddress, |
|
|
|
SubAccount: &key, |
|
|
|
SubAccount: &fromAccount, |
|
|
|
Metadata: map[string]interface{}{"type": "undelegation"}, |
|
|
|
Metadata: map[string]interface{}{"type": "undelegation"}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
&vm.RosettaLogAddressItem{ |
|
|
|
&vm.RosettaLogAddressItem{ |
|
|
|