forked from urdt/ussd
create an account using the API
This commit is contained in:
parent
b440881441
commit
a508f06583
15
cmd/main.go
15
cmd/main.go
@ -300,18 +300,7 @@ func (fsd *fsData) create_account(ctx context.Context, sym string, input []byte)
|
||||
}
|
||||
f.Close()
|
||||
|
||||
//accountResp, err := createAccount()
|
||||
accountResp := accountResponse{
|
||||
Ok: true,
|
||||
Result: struct {
|
||||
CustodialId json.Number `json:"custodialId"`
|
||||
PublicKey string `json:"publicKey"`
|
||||
TrackingId string `json:"trackingId"`
|
||||
}{
|
||||
CustodialId: "636",
|
||||
PublicKey: "0x8d86F9D4A4eae41Dc3B68034895EA97BcA90e8c1",
|
||||
TrackingId: "45c67314-7995-4890-89d6-e5af987754ac",
|
||||
}}
|
||||
accountResp, err := createAccount()
|
||||
|
||||
if err != nil {
|
||||
fmt.Println("Failed to create account:", err)
|
||||
@ -428,7 +417,7 @@ func (fsd *fsData) check_account_status(ctx context.Context, sym string, input [
|
||||
|
||||
accountData["Status"] = status
|
||||
|
||||
if status == "REVERTED" {
|
||||
if status == "SUCCESS" {
|
||||
res.FlagSet = append(res.FlagSet, USERFLAG_ACCOUNT_SUCCESS)
|
||||
res.FlagReset = append(res.FlagReset, USERFLAG_ACCOUNT_PENDING)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user