deploy contract with EVM signature
This release enables deploying contracts using EVM signature. EVM deployment is enabled only if bundling through Warp Gateway is enabled. Signature is additionally verified in Warp Gateway using warp-signature
package. In order to sign contract and contract source transactions a special signingFunction
from warp-signature
needs to be passed as wallet property instead of Arweave wallet:
import { evmSignature } from 'warp-signature';
const { contractTxId } = await warp.createContract.deploy({
wallet: { signer: evmSignature, signatureType: 'ethereum' },
initState: JSON.stringify(initialState),
src: contractSrc,
});
Exactly the same way it is possible to use deployFromSourceTx
method.