Skip to content

Commit 190b4ee

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 ef31071 commit 190b4ee

1 file changed

Lines changed: 306 additions & 96 deletions

File tree

0 commit comments

Comments
 (0)