Last active
          March 2, 2022 09:37 
        
      - 
      
 - 
        
Save evanVtatum/920c2c98aa882afa46c6f4998a35a05b to your computer and use it in GitHub Desktop.  
    Deploy ERC-1155 Celo
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import {Currency, deployMultiToken} from '@tatumio/tatum'; | |
| /** | |
| * Deploy MultiTokens (1155) contract. | |
| * @param testnet - testnet or mainnet | |
| * @param body - body of the request - https://docs.tatum.io/rest/smart-contracts#/deploy-multi-token-smart-contract | |
| * @param provider - (optional) provider to broadcast tx | |
| */ | |
| const body = { | |
| fromPrivateKey: '0x4874827a55d87f2309c55b835af509e3427aa4d52321eeb49a2b93b5c0f8edfb', | |
| chain: Currency.CELO, | |
| uri: "https://example.com/{id}", | |
| feeCurrency: Currency.CELO | |
| } | |
| const txId = deployMultiToken(false, body); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment