delegation-framework icon indicating copy to clipboard operation
delegation-framework copied to clipboard

Unable to deploy HybridDeleGator manually: Dynamic linking not supported in `create`

Open marvinmarnold opened this issue 1 year ago • 1 comments

I'm unable to deploy HybridDeleGator implementation.

$ git checkout v1.3.0

$ forge build
[⠒] Compiling...
[⠒] Compiling 56 files with Solc 0.8.23
[⠘] Solc 0.8.23 finished in 62.01s

$ forge create --rpc-url https://sepolia.infura.io/v3/X --private-key X src/HybridDeleGator.sol:HybridDeleGator --broadcast --constructor-args 0xdb9B1e94B5b69Df7e401DDbedE43491141047dB3 0x0000000071727De22E5E9d8BAf0edAc6f37da032 --etherscan-api-key X
[⠊] Compiling...
No files changed, compilation skipped
Error: Dynamic linking not supported in `create` command - deploy the following library contracts first, then provide the address to link at compile time
        SCL_RIP7212: lib/SCL/src/lib/libSCL_RIP7212.sol

I'm trying to add custom functionality to HybridDeleGator as part of the ongoing hackathon.

marvinmarnold avatar May 11 '25 22:05 marvinmarnold

$ git checkout v1.3.0

$ forge build [⠒] Compiling... [⠒] Compiling 56 files with Solc 0.8.23 [⠘] Solc 0.8.23 finished in 62.01s

$ forge create --rpc-url https://sepolia.infura.io/v3/X --private-key X src/HybridDeleGator.sol:HybridDeleGator --broadcast --constructor-args 0xdb9B1e94B5b69Df7e401DDbedE43491141047dB3 0x0000000071727De22E5E9d8BAf0edAc6f37da032 --etherscan-api-key X [⠊] Compiling... No files changed, compilation skipped Error: Dynamic linking not supported in create command - deploy the following library contracts first, then provide the address to link at compile time SCL_RIP7212: lib/SCL/src/lib/libSCL_RIP7212.sol

ngalee8311 avatar Sep 25 '25 15:09 ngalee8311

You have to follow deployment script here: https://github.com/MetaMask/delegation-framework/blob/main/documents/Deployments.md

Make sure to have .env environment correctly set and deploy via deployment scripts found here: https://github.com/MetaMask/delegation-framework/tree/main/script

MoMannn avatar Feb 26 '26 11:02 MoMannn