Skip to content

Commit

Permalink
comment on-file example code
Browse files Browse the repository at this point in the history
  • Loading branch information
wuminzhe committed Aug 25, 2023
1 parent ace57b4 commit 15d51fb
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ def get_storage2(rpc, metadata, pallet_name, storage_name, key_part1: nil, key_p
)
end

require_relative '../config/config'
config = get_config
crab_metadata = JSON.parse(File.read(config[:metadata][:crab]))
crab_rpc = config[:crab_rpc]

p get_storage2(
crab_rpc,
crab_metadata,
'deposit',
'deposits',
key_part1: '0x0a1287977578F888bdc1c7627781AF1cc000e6ab',
at: '0xfdd0465158c85d8fc8b77d866a2fc7e542b78d48f1b37a0d7bb7ec4378d43b08'
)
# require_relative '../config/config'
# config = get_config
# crab_metadata = JSON.parse(File.read(config[:metadata][:crab]))
# crab_rpc = config[:crab_rpc]
#
# p get_storage2(
# crab_rpc,
# crab_metadata,
# 'deposit',
# 'deposits',
# key_part1: '0x0a1287977578F888bdc1c7627781AF1cc000e6ab',
# at: '0xfdd0465158c85d8fc8b77d866a2fc7e542b78d48f1b37a0d7bb7ec4378d43b08'
# )

0 comments on commit 15d51fb

Please sign in to comment.