Skip to content

deploy contract with EVM signature

Compare
Choose a tag to compare
@asiaziola asiaziola released this 24 Nov 15:58
· 320 commits to main since this release

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.