citycoins / api

A simple API to interact with Stacks and CityCoins data.
https://api.citycoins.co/docs
Apache License 2.0
9 stars 2 forks source link

Bug: Exception if contract principal is passed #39

Closed whoabuddy closed 2 years ago

whoabuddy commented 2 years ago

A contract principal varies from a standard principal with the addition of .contract_name, and is likely failing due to how it's handled with constructing the Clarity value.

Example: https://api.citycoins.co/activation/get-user-id/mia/SP196Q1HN49MJTJFRW08RCRP7YSXY28VE72GQWS0P.syvita-mining-mia-v1

Looks like micro-stacks will even make it easy for us

May only affect src/citycoins.ts?