Skip to content

Commit

Permalink
Update .env.example for katana (kkrt-labs#614)
Browse files Browse the repository at this point in the history
Time spent on this PR: 0.01

## Pull request type

Please check the type of change your PR introduces:

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [x] Documentation content changes
- [ ] Other (please describe):

## What is the current behavior?

The default account for katana in the `.env.example` doesn't exist
anymore

## What is the new behavior?

Updated values

## Other information

While trying to deploy kakarot on katana, I was able to deploy a
`Counter` but not an ERC20, still facing the events issue. Not sure why
it would work for Counter and not ERC20 though. Just added in the
printed error the receipt's events.
  • Loading branch information
ClementWalter authored Jul 3, 2023
1 parent 7ff9876 commit e5556e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ SHARINGAN_PRIVATE_KEY=
DEVNET_ACCOUNT_ADDRESS=0x7e00d496e324876bbc8531f2d9a82bf154d1a04a50218ee74cdd372f75a551a
DEVNET_PRIVATE_KEY=0xe3e70682c2094cac629f6fbed82c07cd

KATANA_ACCOUNT_ADDRESS=0x06f62894bfd81d2e396ce266b2ad0f21e0668d604e5bb1077337b6d570a54aea
KATANA_PRIVATE_KEY=0x07230b49615d175307d580c33d6fda61fc7b9aec91df0f5c1a5ebe3b8cbfee02
KATANA_ACCOUNT_ADDRESS=0x03ee9e18edc71a6df30ac3aca2e0b02a198fbce19b7480a63a0d71cbd76652e0
KATANA_PRIVATE_KEY=0x0300001800000000300000180000000000030000000000003006001800006600

ACCOUNT_ADDRESS=
PRIVATE_KEY=
Expand Down
4 changes: 3 additions & 1 deletion scripts/utils/kakarot.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ async def deploy(
if event.from_address == int(get_deployments()["kakarot"]["address"], 16)
]
if len(deploy_event) != 1:
raise ValueError("Cannot locate evm contract address event")
raise ValueError(
f"Cannot locate evm contract address event, receipt events:\n{receipt.events}"
)
evm_address, _ = deploy_event[0].data
contract.address = Web3.to_checksum_address(evm_address)

Expand Down

0 comments on commit e5556e3

Please sign in to comment.