Fix wrong type definitions and invalid return value
Bump leo_rpc to 0.8.4
Merge branch 'release/0.8.4' into develop
Fix type errors