Skip to content

Commit b2bf64c

Browse files
committed
cli: properly build svm binaries by passing core address
Newer versions of NTT support a `bridge-address-from-env` flag, which allows specifying the address of the Wormhole program from an environment variable rather than relying on a pre-defined set of addresses. We use that flag when available, and fall back to patching the binary when it's not. This way of detecting the cargo flag allows us to: - build the binary properly for new versions going forward - support building older NTT releases without modification for other SVMs (e.g. fogo) by patching the binary - if the `bridge-address-from-env` feature is backported to older NTTs (should be straightforward), then the CLI will just pick up that compilation path automatically
1 parent 690086c commit b2bf64c

1 file changed

Lines changed: 306 additions & 96 deletions

File tree

0 commit comments

Comments
 (0)