<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_nakajo</author_name>
  <author_url>https://blog.hatena.ne.jp/y_nakajo/</author_url>
  <blog_title>アルゴリズムとかオーダーとか</blog_title>
  <blog_url>https://y-nakajo.hatenablog.com/</blog_url>
  <categories>
    <anon>Ethereum</anon>
    <anon>Solidity</anon>
  </categories>
  <description>Solidityで用意されている外部のcontractのメソッドを呼び出すdelegatecallのtipsみたいなものをまとめてみました。 思いついた使い方は以下の４通り。A. library定義を利用して呼び出す B. 外部Contractのaddressをあらかじめ準備してdelegatecallメソッドを利用して呼び出す C. Bの派生というか王道？可変長引数のヘッダパートを補完するのがめんどくさいので、同名、同引数の関数を用意して、そのまま引数にmsg.dataを渡してdelegatecallを呼び出す D. C.の派生で何らかの事情でメソッド名を合わせられない時にメソッドのsign…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy-nakajo.hatenablog.com%2Fentry%2F2017%2F11%2F24%2F141026&quot; title=&quot;Solidityの外部ライブラリの呼び出し方いろいろ - アルゴリズムとかオーダーとか&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-11-24 14:10:26</published>
  <title>Solidityの外部ライブラリの呼び出し方いろいろ</title>
  <type>rich</type>
  <url>https://y-nakajo.hatenablog.com/entry/2017/11/24/141026</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
