Merge pull request #1998 from nspcc-dev/fix-calculatenetworkfee-result

rpc: wrap calculatenetworkfee result in a structure
This commit is contained in:
Roman Khimov 2021-06-07 09:53:48 +03:00 committed by GitHub
commit a6fc5d9fe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View file

@ -634,7 +634,7 @@ func (s *Server) calculateNetworkFee(reqParams request.Params) (interface{}, *re
}
fee := s.chain.GetPolicer().FeePerByte()
netFee += int64(size) * fee
return netFee, nil
return result.NetworkFee{Value: netFee}, nil
}
// getApplicationLog returns the contract log based on the specified txid or blockid.