The US's largest retailer earned an adjusted $1.13 a share as revenue edged up 1% to $123.9 billion. Wall Street analysts surveyed by Bloomberg were expecting adjusted earnings of $1.02 a share on revenue of $124.9 billion.

Meanwhile, US comparable sales ex-gas rose 3.4% year-over-year, making for the fourth straight quarter above 3% growth, as Walmart gained market share in categories including food and consumables. Additionally e-commerce revenue surged 37%.

The company hinted that the trade battle between Beijing and Washington could cause it to raise prices.

"We're monitoring the tariff discussions and are hopeful that an agreement can be reached," said Brett Biggs, executive vice president & CFO at Walmart. "Our goal is to always be the low-price leader, and we will actively manage pricing and margins as warranted with our customers and shareholders in mind."

Walmart was up 7% this year through Wednesday.

This story is developing. Check back for updates.

NOW WATCH: 16 clues that foreshadowed Arya's big moment at the battle of Winterfell in 'Game of Thrones'

See Also: