Open YanhuiJessica opened 1 month ago
Same as try_find_program_address()
That does look like an issue. However, in the mean time you can do it like so:
import {create_program_address} from 'solana';
contract pda {
address token = address"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
function create_pda(bytes seed2) public returns (address) {
return create_program_address(["kabang", seed2], token);
}
}
yeah, not a big issue. However, working with variables is sometimes more flexible.
Describe the bug
To Reproduce Compile the attached source code with
solang compile --target solana test.sol
Expected behavior
create_program_address()
should be able to accept array variables.Hyperledger Solang version v0.3.3
Include the complete solidity source code The following example is derived from the documentation.