app/models/ethereum/formatted_oracle.rb
Consider simplifying this complex logical expression. Open
Open
if body.present?
self.address = body['address'] || body['contractAddress']
self.update_address = body['functionID'] || body['updateAddress'] || body['method']
self.config_value = body['data'] || body['payload']
self.payment_amount = (body['paymentAmount'] || body['amount']).to_i