wip-account-creation #4
@ -91,7 +91,7 @@ func main() {
|
|||||||
rfs.AddLocalFunc("verify_pin", ussdHandlers.VerifyPin)
|
rfs.AddLocalFunc("verify_pin", ussdHandlers.VerifyPin)
|
||||||
rfs.AddLocalFunc("check_identifier", ussdHandlers.CheckIdentifier)
|
rfs.AddLocalFunc("check_identifier", ussdHandlers.CheckIdentifier)
|
||||||
rfs.AddLocalFunc("check_account_status", ussdHandlers.CheckAccountStatus)
|
rfs.AddLocalFunc("check_account_status", ussdHandlers.CheckAccountStatus)
|
||||||
rfs.AddLocalFunc("unlock_account", ussdHandlers.Authorize)
|
rfs.AddLocalFunc("authorize_account", ussdHandlers.Authorize)
|
||||||
rfs.AddLocalFunc("quit", ussdHandlers.Quit)
|
rfs.AddLocalFunc("quit", ussdHandlers.Quit)
|
||||||
rfs.AddLocalFunc("check_balance", ussdHandlers.CheckBalance)
|
rfs.AddLocalFunc("check_balance", ussdHandlers.CheckBalance)
|
||||||
rfs.AddLocalFunc("validate_recipient", ussdHandlers.ValidateRecipient)
|
rfs.AddLocalFunc("validate_recipient", ussdHandlers.ValidateRecipient)
|
||||||
@ -110,8 +110,8 @@ func main() {
|
|||||||
rfs.AddLocalFunc("save_yob", ussdHandlers.SaveYob)
|
rfs.AddLocalFunc("save_yob", ussdHandlers.SaveYob)
|
||||||
rfs.AddLocalFunc("save_offerings", ussdHandlers.SaveOfferings)
|
rfs.AddLocalFunc("save_offerings", ussdHandlers.SaveOfferings)
|
||||||
rfs.AddLocalFunc("quit_with_balance", ussdHandlers.QuitWithBalance)
|
rfs.AddLocalFunc("quit_with_balance", ussdHandlers.QuitWithBalance)
|
||||||
rfs.AddLocalFunc("reset_unlocked", ussdHandlers.ResetAccountAuthorized)
|
rfs.AddLocalFunc("reset_account_authorized", ussdHandlers.ResetAccountAuthorized)
|
||||||
rfs.AddLocalFunc("reset_unlock_for_update", ussdHandlers.ResetAllowUpdate)
|
rfs.AddLocalFunc("reset_allow_update", ussdHandlers.ResetAllowUpdate)
|
||||||
rfs.AddLocalFunc("get_profile_info", ussdHandlers.GetProfileInfo)
|
rfs.AddLocalFunc("get_profile_info", ussdHandlers.GetProfileInfo)
|
||||||
rfs.AddLocalFunc("verify_yob", ussdHandlers.VerifyYob)
|
rfs.AddLocalFunc("verify_yob", ussdHandlers.VerifyYob)
|
||||||
rfs.AddLocalFunc("reset_incorrect_date_format", ussdHandlers.ResetIncorrectYob)
|
rfs.AddLocalFunc("reset_incorrect_date_format", ussdHandlers.ResetIncorrectYob)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
LOAD reset_unlocked 16
|
LOAD reset_account_authorized 16
|
||||||
LOAD reset_unlock_for_update 0
|
LOAD reset_allow_update 0
|
||||||
RELOAD reset_unlock_for_update
|
RELOAD reset_allow_update
|
||||||
MOUT edit_name 1
|
MOUT edit_name 1
|
||||||
MOUT edit_gender 2
|
MOUT edit_gender 2
|
||||||
MOUT edit_yob 3
|
MOUT edit_yob 3
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
LOAD reset_unlock_for_update 0
|
LOAD reset_allow_update 0
|
||||||
MOUT profile 1
|
MOUT profile 1
|
||||||
MOUT change_language 2
|
MOUT change_language 2
|
||||||
MOUT check_balance 3
|
MOUT check_balance 3
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
LOAD unlock_account 0
|
LOAD authorize_account 0
|
||||||
HALT
|
HALT
|
||||||
RELOAD unlock_account
|
RELOAD authorize_account
|
||||||
MOVE _
|
MOVE _
|
||||||
carlos marked this conversation as resolved
Outdated
|
|||||||
|
@ -6,9 +6,10 @@ MAP get_sender
|
|||||||
MOUT back 0
|
MOUT back 0
|
||||||
MOUT quit 9
|
MOUT quit 9
|
||||||
HALT
|
HALT
|
||||||
LOAD unlock_account 1
|
LOAD authorize_account 1
|
||||||
RELOAD unlock_account
|
RELOAD authorize_account
|
||||||
Alfred-mk marked this conversation as resolved
Outdated
lash
commented
This stops and gets stuck on correct pin put:
This stops and gets stuck on correct pin put:
```
124125 will receive 22 from 0xA780F64fC93D8e78C20c4120f9E18AeEBeaD9631
Please enter your PIN to confirm:
0:Back
9:quit
1234
[I] engine:engine.go:173 new VM execution with input input=1234
[D] engine:engine.go:182 start new VM run code=0008015f0130000804717569740139
[T] vm:runner.go:81 new vm run
[D] vm:runner.go:113 execute code opcode=8, op=INCMP, code=015f0130000804717569740139
[D] vm:runner.go:114 state=moves: 44 idx: 0 flags: 0x081b09 path: root/main/send/amount/transaction_pin lang: eng (English)
[T] vm:runner.go:361 testing sym sym=_, input=31323334
[D] vm:runner.go:113 execute code opcode=8, op=INCMP, code=04717569740139
[D] vm:runner.go:114 state=moves: 44 idx: 0 flags: 0x091b09 path: root/main/send/amount/transaction_pin lang: eng (English)
[T] vm:runner.go:361 testing sym sym=quit, input=31323334
[T] vm:runner.go:200 no code remaining but not terminating
[D] vm:runner.go:113 execute code opcode=6, op=MOVE, code=065f6361746368
[D] vm:runner.go:114 state=moves: 44 idx: 0 flags: 0x091b09 path: root/main/send/amount/transaction_pin lang: eng (English)
[T] engine:persist.go:47 that's a wrap engine={0xc000140b00 0xc0000721a0}
[D] persist:fs.go:70 saved state and cache key=aaaaa, bytecode=, flags=091b09
loop exited with error: unexpected termination: open /srv/git/grassrootseconomics/urdt-ussd.git/services/registration/_catch.bin: no such file or directory
exit status 1
```
|
|||||||
CATCH incorrect_pin 15 1
|
CATCH incorrect_pin 15 1
|
||||||
INCMP _ 0
|
INCMP _ 0
|
||||||
INCMP quit 9
|
INCMP quit 9
|
||||||
MOVE transaction_initiated
|
MOVE transaction_initiated
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user
This can be
MOVE _
?