metaplex-foundation / amman

A modern mandatory toolbelt to help test solana SDK libraries and apps on a locally running validator.
https://metaplex-foundation.github.io/amman/docs/
Apache License 2.0
72 stars 17 forks source link

feat: check amman compat when running client requests #53

Closed thlorenz closed 2 years ago

thlorenz commented 2 years ago

Summary

In order to quickly warn the user if the amman-client used is incompatible with the amman CLI used due to the latter being out of date a version check is performed.

If this version check fails then an error is raised and printed to the console.

Sample Error Message

Error: It appears you're using an outdated amman cli version v0.10.0
Make sure to use amman cli version >= v0.11.0 by updating amman updating it from npm:
https://www.npmjs.com/package/@metaplex-foundation/amman

Sample Succes Debug Message Logged

amman:relay:debug Verified that v0.11.0 >= v0.11.0. +90ms