xpring-eng / Xpring-SDK-Demo

Demo Code for the Xpring SDK
https://xpring.io
12 stars 14 forks source link

Updates `XrpClient` Demo to use `sendXrp` over `send` #58

Closed amiecorso closed 3 years ago

amiecorso commented 3 years ago

High Level Overview of Change

The send method has been deprecated on the XrpClient. This PR updates the demos to use the new sendXrp method, which returns an informative TransactionResult instead of just a hash, and has a more specific name.

I also updated the helper method that converts a TransactionStatus to a string since we have since added cases to that enum.

Context of Change

Type of Change

Before / After

Demos up to date.

Test Plan

Ran demo locally, CI passes.