Skip to content

Commit

Permalink
update factory deployment args json
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed May 4, 2024
1 parent 245f4b3 commit 51d4799
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cadence/args/deploy-factory-args.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cadence/contracts/bridge/FlowEVMBridgeUtils.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ contract FlowEVMBridgeUtils {
"bridged": "EVMVMBridgedToken"
}
}
self.bridgeFactoryEVMAddress = EVMUtils.getEVMAddressFromHexString(address: bridgeFactoryAddressHex)
self.bridgeFactoryEVMAddress = EVMUtils.getEVMAddressFromHexString(address: bridgeFactoryAddressHex.toLower())
?? panic("Invalid EVM address hex")
}
}
2 changes: 1 addition & 1 deletion cadence/transactions/evm/call.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ transaction(evmContractAddressHex: String, calldata: String, gasLimit: UInt64, v
let coa: auth(EVM.Call) &EVM.CadenceOwnedAccount

prepare(signer: auth(BorrowValue) &Account) {
let evmAddressBytes: [UInt8] = evmContractAddressHex.decodeHex()
let evmAddressBytes: [UInt8] = evmContractAddressHex.toLower().decodeHex()
self.evmAddress = EVM.EVMAddress(
bytes: [
evmAddressBytes[0], evmAddressBytes[1], evmAddressBytes[2], evmAddressBytes[3], evmAddressBytes[4],
Expand Down
1 change: 0 additions & 1 deletion cadence/transactions/evm/deploy.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import "FungibleToken"
import "FlowToken"

import "EVM"
import "EVMUtils"

/// Deploys a compiled solidity contract from bytecode to the EVM, with the signer's COA as the deployer
///
Expand Down
7 changes: 0 additions & 7 deletions flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@
"previewnet": "b6763b4399a888c8"
}
},
"EVMDeployer": {
"source": "./tests/contracts/EVMDeployer.cdc",
"aliases": {
"emulator": "f8d6e0586b0a20c7",
"testing": "0000000000000009"
}
},
"EVMUtils": {
"source": "./cadence/contracts/utils/EVMUtils.cdc",
"aliases": {
Expand Down

0 comments on commit 51d4799

Please sign in to comment.