OSDN Git Service

Modify the dependency on path
[bytom/vapor.git] / api / api.go
index bea80e6..d3a5790 100644 (file)
@@ -248,7 +248,7 @@ func (a *API) buildHandler() {
                m.Handle("/recovery-wallet", jsonHandler(a.recoveryFromRootXPubs))
 
                m.Handle("/get-pegin-address", jsonHandler(a.getPeginAddress))
-               m.Handle("/get-pegin-contract-address", jsonHandler(a.getAddressForPeginContract))
+               m.Handle("/get-pegin-contract", jsonHandler(a.getPeginContract))
                m.Handle("/claim-pegin-transaction", jsonHandler(a.claimPeginTx))
                m.Handle("/create-key-pair", jsonHandler(a.createXKeys))
                m.Handle("/get-utxo-from-transaction", jsonHandler(a.getUnspentOutputs))